How to extract rows which contains a specific value in each row.
Show older comments
How to extract rows which contains a specific value in each row. Example: a =
1. 2. 3.
4. 5. 6.
1. 2. 3.
4. 5. 6.
a(a==1,:)
1. 2. 3.
1. 2. 3.
but the problem is as follows:
a(a==5,:)
Invalid index.
Accepted Answer
More Answers (1)
slimani djamel
on 13 Feb 2017
0 votes
Categories
Find more on Networks 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!