MATLAB: Customizing the index of reshape A 2X2 matrix

matricesreshape

So I have a 2×2 matrix
test=[1 2;16 9]
y=reshape(test,[],1)
which returns
1
16
2
9
I want it to reshape like this
1
2
16
9
Any suggestion would be highly appreciated.

Best Answer

Transpose Test before reshaping.
Related Question