How to split a 3d matrix into sub-3d matrices?
5 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Stephen23
2016 年 9 月 21 日
編集済み: Stephen23
2016 年 9 月 21 日
It is easy to split that array using mat2cell, you just need to define a vector that defines how to split each of the dimensions:
A = rand(100,100,100);
D = 10*ones(1,10);
C = mat2cell(A,D,D,D);
and the output:
>> size(C)
ans =
10 10 10
>> size(C{1})
ans =
10 10 10
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Downloads についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!