Borrar filtros
Borrar filtros

How do I find the index of a known number? (reverse indexing?)

5 visualizaciones (últimos 30 días)
Sandy
Sandy el 3 de Abr. de 2014
Comentada: Sandy el 3 de Abr. de 2014
I have a matrix M.
I have a number XXXX.
I want to find the index of this number within my matrix M.
How can I do this?

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 3 de Abr. de 2014
idx = find(M==xxxx)

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by