a 4 by 5 MatriX
A = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
The Mathwork example divide sA into two 2-by-3 and two 2-by-2 subarrays:
C = mat2cell(A,[2 2],[3 2])
What are the indices here in the dimension statement:
Does [2,2] refer to 2 tables w two rows each
Does [3,2] specify the first set of tables has 3 rows, the second set 2 rows.
I can't understand or see the pattern in how the dimensions are set in mat2cell
Thank you, Nancy
Best Answer