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, [])