Effacer les filtres
Effacer les filtres

Indexing

1 vue (au cours des 30 derniers jours)
Sahab
Sahab le 7 Mai 2011
how can we know the index of this data? for example,i want know index of 0 and -30
x=[0,-10,-30,-30,-10,-20,-20,-0,-30]

Réponse acceptée

Paulo Silva
Paulo Silva le 7 Mai 2011
I0=find(x==0)
I30=find(x==-30)
  1 commentaire
Sahab
Sahab le 7 Mai 2011
wow so easy..thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays 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