Neural Network Toolbox | Search  Help Desk |
mat2cell | Examples See Also |
Break matrix up into a cell array of matrices
mat2cell(M,R,C);
mat2cell(M,R,C)
takes three arguments,
and returns a cell array of matrices, found using R
and C
.
M = [1 2 3 4; 5 6 7 8; 9 10 11 12]; C = mat2cell(M,[1 2],[2 2])
cell2mat