Divide a 3D matrix into smaller 3D matrixes

2 ビュー (過去 30 日間)
konstantina vatavali
konstantina vatavali 2020 年 8 月 14 日
Hello,
I have a 3D matrix e.g. 100x200x400.
How can I divide it into 100 submatrices which dimensions are 100x200x4?
Thank you!
  1 件のコメント
KSSV
KSSV 2020 年 8 月 14 日
Read about reshape.

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

採用された回答

Walter Roberson
Walter Roberson 2020 年 8 月 14 日
編集済み: Walter Roberson 2020 年 8 月 14 日
YourCell = mat2cell(size(YourArray,1), size(YourArray,2), 4*ones(size(YourArray,3)/4));

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by