I have got a 450 by 450 matrix. I need to reshape every 30 by 30 submatrix to become a 1 by 900 matrix. Therefore, there are 225 1 by 900 matrices. Then I have to group those 225 matrices to become a 225 by 900 matrix. At this moment I have got something like this to extract every 30 by 30 matrices.
for i=1:30:450 for j =1:30:450 G= m((i:i+29),(j:j+29)); endend
But I have no ideas how to reshape those matrices to become 1 by 900 matrices to form a 225 by 900 matrix. Hope somebody can help, thank you.
Best Answer