I have a matrix A as below:
a = [20 30 45 55 100; 200 150 175 60 20; 100 29 36 52 98; 28 33 48 62 95; 206 147 180 53 45];
I want to have matrices with rows in range of +/-10 and if one number of each rows are out of range, it's okay.
For example, for matrix A we can write:
B = [20 30 45 55 100; 100 29 36 52 98; 28 33 48 62 95]
C = [200 150 175 60 20; 206 147 180 53 45]
for example if I have a matrix 1000*2000 how can I split it?
Best Answer