MATLAB: How transform matrix to vector

matrix

hello everyone,
I have matrix with 6*36 elements I want to transform all the elements in vector with 108*1 (108=6*36)
example A=[1 2 3;8 9 7] will be B=[1;2;3;8;9;7 ]
and thank you very much

Best Answer

A = [1 2 3 ; 8 9 7] ;
iwant = A(:)
Related Question