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

4 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Sean de Wolski
Sean de Wolski il 3 Apr 2014
idx = find(M==xxxx)

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by