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

1 次查看(过去 30 天)
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?

采纳的回答

Sean de Wolski
Sean de Wolski 2014-4-3
idx = find(M==xxxx)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by