Neural Network Toolbox | ![]() ![]() |
Break matrix up into a cell array of matrices
Syntax
Description
mat2cell(M,R,C)
takes three arguments,
M - row
x col
matrix.
R -
Vector of row sizes (should sum to row
).
C -
Vector of col sizes (should sum to col
).
and returns a cell array of matrices, found using R
and C
.
Examples
M = [1 2 3 4; 5 6 7 8; 9 10 11 12]; C = mat2cell(M,[1 2],[2 2])
See Also
![]() | mandist | maxlinlr | ![]() |