finding specific values' rows numbers in an array
Show older comments
a=[11;4;3;99;5;6;7];
b=[4;7];
I need to find which rows in a matrix include 4,7. The answer must be 2th and 7th rows w.r.t. the solution.
Accepted Answer
More Answers (1)
find(a==4)
find(a==7)
Categories
Find more on MATLAB 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!