My cell array "img" has over 3000 matrices in it. I want to reshape every 6 of them from 500*600 to 300,000*1, and then add them together into a 300,000*6 matrix. For now, I only know how to do it manually but processing all of them will eventually cost lots of time. I will be grateful to any looping ideas or hints or helpful links. Thank you.
Q(:,1) = reshape(cell2mat(img(1,1)),[300000 1]);Q(:,2) = reshape(cell2mat(img(1,2)),[300000 1]);Q(:,3) = reshape(cell2mat(img(1,3)),[300000 1]);Q(:,4) = reshape(cell2mat(img(1,4)),[300000 1]);Q(:,5) = reshape(cell2mat(img(1,5)),[300000 1]);Q(:,6) = reshape(cell2mat(img(1,6)),[300000 1]);
Best Answer