How to unfold/concatenate a 3D Matrix?

4 ビュー (過去 30 日間)
Rafael Borobio Castillo
Rafael Borobio Castillo 2022 年 1 月 10 日
I have a 3D matrix of 100x21x100 and I want to perform a vertical unfolding, i.e., to get a 10000x21 matrix.
Thanks for your attention.

採用された回答

Stephen23
Stephen23 2022 年 1 月 10 日
Making some guesses about the order you want, where A is your array:
B = reshape(permute(A,[1,3,2]),[],21)
  1 件のコメント
Rafael Borobio Castillo
Rafael Borobio Castillo 2022 年 1 月 11 日
it worked perfectly, thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by