MATLAB: How to reshape a matrix to a vector reshape I have a matrix for example [1 2 3; 4 5 6; 7 8 9]. I want to return it to [1 2 3 4 5 6 7 8 9] how can I do that please? Thanks Best Answer reshape(A.', 1, []) Related SolutionsMATLAB: How to make a 3×3 matrix a 9×1 matrix reshape(x,9,1)or x(:) % this creates a column vector out of a matrix MATLAB: Reshaping A = [1 0 1 0 0 0 1];B = [1 1 1 0 0 0 1];s = reshape([A;B],1,[]) Related QuestionDo a matrix,arrayVector inside a vectorQUESTION ON MATRIX RESHAPINGReshapeHow to randomly moving rows of a matrixHow to reshape a matrix from a vector
Best Answer