# finding position in matrix

2 visualizzazioni (ultimi 30 giorni)
sarp karayegen il 20 Apr 2020
Risposto: Jyotsna Talluri il 23 Apr 2020
I couldnt find the way to figure out how find position M(m,n) matrix can you help me ?
##### 2 CommentiMostra NessunoNascondi Nessuno
Michael Soskind il 20 Apr 2020
If you want to find a list of positions, you can use:
find(condition)
Where condition might look like M == 1
Alternatively, you could simply use
M == 1
Which would return a logical array of size n x m, meaning that calling M(M==1) would give you a list of the values at the indices above.
Ameer Hamza il 20 Apr 2020
sarp, can you further elaborate your question with an example of what you mean by "find position M(m,n)"?

Accedi per commentare.

### Risposte (1)

Jyotsna Talluri il 23 Apr 2020
[row,column] = find(M ==element);
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### 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