Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Sandy
Sandy le 3 Avr 2014
Commenté : Sandy le 3 Avr 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?

Réponse acceptée

Sean de Wolski
Sean de Wolski le 3 Avr 2014
idx = find(M==xxxx)

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by