I have a matrix A (7×2) and a vector B. B represents the row indicies, where i want the matrix A to be sprlit.
e.g.
A = [2 6; 4 3; 3 3; 2 8; 9 1; 3 4; 7 5] B=[2; 3; 6]
output should be
A1 = [2 6; 4 3]A2 = [3 3]A3 = [2 8; 9 1; 3 4]A4 = [7 5]
Do you have an idea how it could be done?
Thank you for help.
Best Answer