How can I find the position of a real number in a vector?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Cameron B
el 5 de Mzo. de 2020
find(v==-0.999)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!