locate within the first column of a matrix a sequence of numbers and extract those rows
Show older comments
hi! I have the matrix 'M'. How can I locate inside the first column of the matrix 'M' the sequence of numbers (1 to #) and extract those rows?
For example, this matrix 'M' breaks down into:
- rows 1:9
- rows 10:12
- rows 13:18

Accepted Answer
More Answers (0)
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!