How do I reshape a matrix into a vector where each row is positioned end to end?
%example 2d matrix
a = [1 2;3 4]%this version reshapes columns not rows
b = reshape (a,[1,4])
The result I am looking for is:
Thanks for any assistance.
b = 1 2 3 4
Best Answer