Divide a 3D matrix into smaller 3D matrixes

2 次查看(过去 30 天)
Hello,
I have a 3D matrix e.g. 100x200x400.
How can I divide it into 100 submatrices which dimensions are 100x200x4?
Thank you!

采纳的回答

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 CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by