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]

 Respuesta aceptada

Paulo Silva
Paulo Silva el 7 de Mayo de 2011

1 voto

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

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 7 de Mayo de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by