How can I convert a 2D array to a 3D array in the following form?

 採用された回答

madhan ravi
madhan ravi 2019 年 3 月 16 日

3 投票

permute(reshape(A,I/3,[],J),[1,3,2]) % A - matrix, I - no of rows, J - no of columns

1 件のコメント

Saeid
Saeid 2019 年 3 月 16 日
Thanks a lot Madhan!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

質問済み:

2019 年 3 月 16 日

編集済み:

2019 年 3 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by