If, for example, I have a 5000x30 matrix and I want to obtain 10 sub matrices having dimensions of 5000x3, how do I code this in Matlab. I have read several post on this issue,this one here for example, but none of them keep the number of rows in the submatrices the same as the main matrix.
As I will be handling very large matrices, I would prefer a code that is faster, like using Matlab's inbuilt functions such as mat2cell
or any other vectorized
method, but not with loops.