how to find the positions of a value or less than that value from a matrix????

3 Ansichten (letzte 30 Tage)
i have a matrix
A=[1 2 1 0 2
1 0 2 1 1
2 1 3 0 -1]
from each row i want to find all positions of 1 and all less than 1.
please please help me. I am badly stuck.
Thank you in advance
suchi

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 22 Nov. 2015
[ii,jj] = find(A<=1)

Weitere Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by