MATLAB: Convert array into column vector – by row rather than column

arrayconvertMATLABreshapevector

Best Answer

Managed to achieve this by taking the transpose of matrix a first, and then performing the same operation.

 b = a';
 b(:)