Indexing

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

1 voto

I0=find(x==0)
I30=find(x==-30)

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by