Find the index value

1 vue (au cours des 30 derniers jours)
Silpa K
Silpa K le 6 Oct 2019
Commenté : KALYAN ACHARJYA le 13 Oct 2019
I have a an array.I need to find its index value.How can i do that?
  1 commentaire
Walter Roberson
Walter Roberson le 6 Oct 2019
Is the index Circulated, Almost Uncirculated, or Mint Condition?

Connectez-vous pour commenter.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 6 Oct 2019
Modifié(e) : KALYAN ACHARJYA le 6 Oct 2019
>> array_data=2:3:30
array_data =
2 5 8 11 14 17 20 23 26 29
Case 1: I assumed you are looking for index value of specific element in the array, say 17
idx=find(array_data==17)
Case 2: for all array Elements
idx=1:length(array_data)
Hope it helps!
  10 commentaires
Silpa K
Silpa K le 13 Oct 2019
Thank you sir.
KALYAN ACHARJYA
KALYAN ACHARJYA le 13 Oct 2019
Answer Credit Goes to @Walter Sir

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type 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