I have the following 2156 x 11 matrix (A). I have attached the matrix. I want to use column 11 to get all rows between 5001's and 6001's and put them in another matrix (B). I also want to get all the rows between 5001's and 1001's and put them in another matrix (C).
Below is a truncated version of column 11:
1001
0
0
0
0
0
0
5001
1001
0
0
0
0
0
5001
1001
0
0
0
0
5001
0
1001
0
0
0
0
5001
1001
0
0
0
0
5001
6001
.
.
.
2 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/526022-conditional-indexing-using-specific-numbers-in-a-column#comment_862988
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/526022-conditional-indexing-using-specific-numbers-in-a-column#comment_862988
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/526022-conditional-indexing-using-specific-numbers-in-a-column#comment_863078
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/526022-conditional-indexing-using-specific-numbers-in-a-column#comment_863078
Sign in to comment.