Convert vector position to real number
Afficher commentaires plus anciens
Really simple question, I have the following:
>> vec=[44 3 2 9 11 6]
vec =
44 3 2 9 11 6
>> find(vec>6)
ans =
1 4 5
How do I convert the values into their real number? As in how do I have 44 9 11 show up
1 commentaire
Tom
le 11 Oct 2015
indices = find(vec>6)
vec(indices)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!