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(:) Related SolutionsMATLAB: Row Wise concatenation Try this:AB = reshape([a, B]', 3, [])' % Interleave arrays. MATLAB: Reshape 3d matrix to obtain a column vector A(:,:,1) = [1 2 3; 4 5 6; 7 8 9]A(:,:,2) = [10 11 12; 13 14 15; 16 17 18]A(:,:,3) = [19 20 21; 22 23 24; 25 26 27]B=permute(A,[2 1 3])out=B(:) Related QuestionHow to find a subset matrix in the main matrix and build a new matrixTwo vectors into matrix with an opeartionHow to copy rows of a matrix to convert it into single row?How to combine multiple columns into a single column
Best Answer
Managed to achieve this by taking the transpose of matrix a first, and then performing the same operation.