필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
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 CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by