MATLAB: I have a matrix W of 361*285.I want to create a matrix such that each column(1*285) of the matrix is reshaped into a matrix of (19*19)(read as atom)such that the atoms are concatenated into a 19*15 matrix

matrix

Best Answer

A = rand(361,285);
B = reshape(A,19,19,19,15);