MATLAB: How to recombine matrices in this order matrixmatrix manipulation I have nine matrices with equal dimensions of 40×10, how do I recombine them in the way shown in my png? Thank you Best Answer If your matrices are not together in a cell array, e.g. they're individually numbered matrices, thendon't do that!fix the problem by putting them together in a cell array:c = {M1, M2, M3, ....}it is then trivial to reshape/transform that cell array and generate the full matrix you want:c = reshape(c, 3, 3); %reshape the cell array in a 3x3 gridc = rot90(c); %rotate 90 degrees anticlockwiseresult = cell2mat(c); %concatenate all into one matrix Related SolutionsMATLAB: How to transpose a cell array reshape command works for this example well. For poly as the name of the cell array, polyre = reshape(poly,[1 8]); MATLAB: How to convert from cell array to multidimensional array A -your cell array [3 x 3].Z = cellfun(@(x)reshape(x,1,1,[]),A,'un',0);out = cell2mat(Z); Related QuestionCell 2 3d matrixNeat stacking of array and cell arrayTransposing cells
Best Answer