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

3 ビュー (過去 30 日間)
suchismita
suchismita 2015 年 11 月 22 日
回答済み: Andrei Bobrov 2015 年 11 月 22 日
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

採用された回答

Andrei Bobrov
Andrei Bobrov 2015 年 11 月 22 日
[ii,jj] = find(A<=1)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by