- don't do that!
- fix the problem by putting them together in a cell array:
How do I recombine matrices in this order?
3 ビュー (過去 30 日間)
古いコメントを表示
I have nine matrices with equal dimensions of 40x10, how do I recombine them in the way shown in my png?
Thank you
0 件のコメント
採用された回答
Guillaume
2017 年 7 月 21 日
If your matrices are not together in a cell array, e.g. they're individually numbered matrices, then
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 Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!