Borrar filtros
Borrar filtros

find values of indexes

3 visualizaciones (últimos 30 días)
Olga
Olga el 8 de Sept. de 2014
Comentada: Image Analyst el 8 de Sept. de 2014
Hello,
Could you please help me to find values of indexes.
Thank you
  1 comentario
Image Analyst
Image Analyst el 8 de Sept. de 2014
They generally go 1,2,3,4,5,etc. Which ones do you want?

Iniciar sesión para comentar.

Respuestas (1)

yonatan gerufi
yonatan gerufi el 8 de Sept. de 2014
hopfully this will answer your question,
The functions min & max give you back:
[value, position]
you can use it to find specific value with:
array2 = abs(array1 - searched value)
[value, positions] = min(array2)
this will work also for matrix.

Categorías

Más información sobre Matrix Indexing 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