Is there any inbuilt function to display all the submatrices from a matrix in matlab? For displaying one submatrix we have the function x(:,m:n). For eg: Consider a 4 x 4 matrix
A = 14 11 16 16
15 2 16 8
3 5 3 13
15 9 16 3
If the size of all submatrices is 1 x 2 , how to display all the submatices present in A? Also how to represent each submatrix with a variable (for eg; a1,a2..etc)
a{1}=[14 11]
a{2}=[16 16]
.
.
a{8}=[16 3]
How to display all the submatrices in the form of a cell array? please help. thanks in advance