I want to reshape this matrix but the following command does the rearrangement not properly.
b=(rand(30,1)).'c = reshape(b,[3,10])
i want to rearrange in the following manner
b= 4 1 3 5 7 1 2 3 5 6 …… 2 3 4
c= 4 1 3 5 7 1 2 3 5 6 (10 columns)
My command rearranges c as 4 5 2 ….
how can i change this?
Best Answer