How can I find the indices of a vector?
Show older comments
If I have a row vector,what command allows me to find the indexes that exceed a certain value that I want as a threshold. For example:
A =
0.1222
0.1350
0.1759
0.1110
0.1015
0.2599
0.1465
I would like in output the indices of the value grater or equal than 0.123, for example.
Accepted Answer
More Answers (1)
[r,c]=find(A>=0.123)
Categories
Find more on Language Fundamentals 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!