I'm trying to split a 1048x1190 matrix into smaller matrix using
C = mat2cell(I,[131 119],[131 119]);
I'm getting the error
Input arguments, D1 through D2, must sum to each dimension of the input matrix size, [1048 1190].
Would this not divide this into an 8 (1048/131) x 10 (1190/119) array?