title: How can I divide a matrix into unequally-sized submatrices?
body: <p>I am wondering if it is possible to use the <code>mat2cell</code> function to divide an <code>MxN</code> matrix into 10 submatrices with the same column size, <code>N</code>, and approximately the same row size <code>~M/10</code>? If <code>mod(M, 10) == 0</code> then all submatrices will have the same size, otherwise a few matrices will have +/-1 row. Is this possible via the <code>mat2cell</code> function?</p>
  
  <p>For reference, if the row sizes are all the same it's fairly straightforward, as explained here:
  <br><a href="https://stackoverflow.com/q/1817174/52738">How to divide a matrix into equals parts?</a></p>