MATLAB: Using mat2cell

mat2cell

M is matrix of 2010×1300
how do i form 201 cells of 10×1300 using mat2cell?

Best Answer

This works:
M = randn(2010, 1300);
C = mat2cell(M, 201*ones(1,10), 1300);
See the documentation for an explanation.