Azzera filtri
Azzera filtri

Indexing

1 visualizzazione (ultimi 30 giorni)
Sahab
Sahab il 7 Mag 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]

Risposta accettata

Paulo Silva
Paulo Silva il 7 Mag 2011
I0=find(x==0)
I30=find(x==-30)
  1 Commento
Sahab
Sahab il 7 Mag 2011
wow so easy..thanks.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by