trivial matrix question: how to rearrange matrices in a given order
1 回表示 (過去 30 日間)
古いコメントを表示
Hello everyone,
I know this could seems trivial and meybe here we are talking about the very matlab basics, but as I am dealing with really big data structures, I would like to receive some support.
I have the following matrix, as shown in 1:
I would like to reshape it to be as in 2, and back again to point 1.
Thanks in advance
0 件のコメント
採用された回答
その他の回答 (1 件)
chicken vector
2023 年 4 月 27 日
編集済み: chicken vector
2023 年 4 月 27 日
A = reshape(1:3^3,3^2,[])
B = permute(reshape(A',[],3,3),[2,1,3])
A = reshape(B,[],3)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!