Borrar filtros
Borrar filtros

Indexing

1 visualización (últimos 30 días)
Sahab
Sahab el 7 de Mayo de 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]

Respuesta aceptada

Paulo Silva
Paulo Silva el 7 de Mayo de 2011
I0=find(x==0)
I30=find(x==-30)
  1 comentario
Sahab
Sahab el 7 de Mayo de 2011
wow so easy..thanks.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by