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 ?

8 ビュー (過去 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 Center および File ExchangeInterpolation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by