I wonder if there is a MATLAB solution for partitioning a matrix into submatrices, such as:
Matrix:
A = 16 2 3 5 11 10 9 7 6 4 14 15 5 1 3
I would like to take lines starting at 5 on another, those starting at 16 on another, etc.
Is there a function for this or should I go with if / for the approach?
source share