Filter löschen
Filter löschen

Indexing

1 Ansicht (letzte 30 Tage)
Sahab
Sahab am 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]

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by