How do I recombine matrices in this order?

1 次查看(过去 30 天)
I have nine matrices with equal dimensions of 40x10, how do I recombine them in the way shown in my png?
Thank you

采纳的回答

Guillaume
Guillaume 2017-7-21
If your matrices are not together in a cell array, e.g. they're individually numbered matrices, then
  • don'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 grid
c = rot90(c); %rotate 90 degrees anticlockwise
result = cell2mat(c); %concatenate all into one matrix

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Translated by