reshapeis the correct way to rearrange items into a different form, as indicated by Ben .
However, you should pay attention to the order of elements in the vector and in the resulting array:
>> v = 1:12;
>> reshape( v, 3, 4 )
1 4 7 10
2 5 8 11
3 6 9 12
Matlab "".
" ", permute,
>> permute( reshape( v, 4, 3 ), [2 1] )
1 2 3 4
5 6 7 8
9 10 11 12
, reshape 4--3 ( 3--4), permute.