I am wondering if it is possible to use the mat2cell
function to divide an MxN
matrix into 10 submatrices with the same column size, N
, and approximately the same row size ~M/10
? If mod(M, 10) == 0
then all submatrices will have the same size, otherwise a few matrices will have +/-1 row. Is this possible via the mat2cell
function?
For reference, if the row sizes are all the same it's fairly straightforward, as explained here:
How to divide a matrix into equals parts?