I have a 4x4 Matrix. I want to subdivide the matrix into 4 different 2x2 matrices and store each block in a variable. How do I do it ?

조회 수: 6 (최근 30일)
Can you provide the code for this ?. Thank you.

채택된 답변

David Hill
David Hill 2022년 8월 1일
r=mat2cell(yourMatrix,[2,2],[2,2]);%now have 2x2 cell containing the 4 matrices

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by