Convert the matrix m into a cell array. If dim is defined, the value c is of dimension 1 in this dimension and the elements of m are placed in slices in c. See also: mat2cell
Convert the matrix m into a cell array. If dim is defined, the value c is of dimension 1 in this dimension and the elements of m are placed in slices in c.