How can I find the position of a real number in a vector?
Show older comments
I have a vector v:
v=[-0.9990;0.8988;2;3];
I want to find the position of -0.9990.
I used find(x==-0.9990) it does not work.
Any solutions?
Thanks
Accepted Answer
More Answers (1)
Cameron B
on 5 Mar 2020
find(v==-0.999)
Categories
Find more on Loops and Conditional Statements 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!