MATLAB: How to write a loop to make a matrix in Matlab

loop; matrix

Hello
Could you tell me, how can I write a loop to make a matrix in Matlab? such as :
nodes = [x(1) y(1) z(1);x(2) y(2) z(2);x(3) y(3) z(3); … until 10]
I have been written as:
x=x+1;
y=y+2;
z=z+3;
node_act = [x y z];
node_new = zeros(10,3);
node_new(1,:) = node_act;
for i= 2:10
node_new(i,:) = node_new(i-1,:)+node_act
end
but that isn't correct.
Thanks in advance

Best Answer

node_new = [x(:), y(:), z(:)];