Convert vector position to real number

3 vues (au cours des 30 derniers jours)
Krish Desai
Krish Desai le 11 Oct 2015
Réponse apportée : Matt J le 12 Oct 2015
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
Tom le 11 Oct 2015
indices = find(vec>6)
vec(indices)

Connectez-vous pour commenter.

Réponse acceptée

Matt J
Matt J le 12 Oct 2015

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by