Divide a 3D matrix into smaller 3D matrixes

조회 수: 2 (최근 30일)
konstantina vatavali
konstantina vatavali 2020년 8월 14일
댓글: 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!

채택된 답변

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