I have a large matrix that should be divided into smaller matrices based on the value in the x-axis. The large matrix, 100X3, has values where the columns represent the x, y and z-axis.
The large matrix should be divided into 10 smaller matrices, the first one containing values x<50, the next one x-values from 50-59, next one 60-69 and so on .
There is no correlation in how many rows there are of each x-value, which can make the first matrix a 50x3 matrix and the next one a 7x3 matrix.
It all have to be done using for loop, and hopfully be made in a way that makes it easy to change, both the number of matrices and the value they are ranging between.
I have figured out how i can divide it into smaller matrices, but just by dividing it into equal parts.
Actually i work with a huge point cloud of a bridge and it have to be divided into smaller segments so that it is easier to work with.
I hope someone can help me..