MATLAB: How to convert a vector [256 by 1] into 16 by 16 matrix

priya

I have a Matrix [256 by 1]. I want convert this matrix in 16 by 16.
How to do this?

Best Answer

reshape(Matrix,16,16)
or in some cases,
reshape(Matrix,16,16).'