mat2cell
- :
C =mat2cell(A, r)¶ - :
C =mat2cell(A, r, c)¶ - :
C =mat2cell(A, d1, d2, …)¶ Split an array into a cell array of blocks.
Each dk is a vector of non-negative extents along dimension k that must add up to
size (A, k).C{i,j,…}is the block of A selected by the i-th extent of d1, the j-th of d2 and so on. Omitted trailing dimensions are not split.