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.
댓글 수: 0
채택된 답변
David Hill
2022년 8월 1일
r=mat2cell(yourMatrix,[2,2],[2,2]);%now have 2x2 cell containing the 4 matrices
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!