This MATLAB function or B = reshape(A,[m n]) returns the m-by-n matrix B whose elements are taken column-wise from A.
www.mathworks.com