FUNCTION REFERENCE
mat2cell
Partition a matrix into cells of specified row and column sizes.
Partition a matrix into cells of specified row and column sizes.
Syntax
cells = mat2cell(matrix, rowSizes [, columnSizes])Example
c=mat2cell([1 2 3],1,[1 2]); c{2} % [2 3]Differences from MATLAB: Two-dimensional arrays only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.