I have a 126120,5 matrix. The first column has values of time. I want to create a new matrix that consists only of the rows that have time increments of 0.01 seconds from the original matrix (0.00s, 0.01s, 0.02s, 0.03s…). How can I go about doing so?
For example: M =
[0.00023 1 2 3 4 5]
[0.007 1 2 3 4 5]
[0.01 1 2 3 4 5]
[0.0127 1 2 3 4 5]
[0.02 1 2 3 4 5]
[0.0245 1 2 3 4 5]
[0.03 1 2 3 4 5]
Mnew =
[0.01 1 2 3 4 5]
[0.02 1 2 3 4 5]
[0.03 1 2 3 4 5]
I know of the command Mnew = M(M(:,1)==0.01,:);
but that is only one row and I don't want to have to do that over and over for each time. Any help would be much appreciated, Thank You!
Best Answer