I try to form a matrix that gets the vector elements by using for loop. In other words, I want to save the for loop result in a matrix. You can see my code below and what I want.
z = [x y]'
1 1 2 2 3 3
4 5 4 5 4 5
Could you help me about this 2x6 matrix, please?