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
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 Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!