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 CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by