필터 지우기
필터 지우기

How can i choose one result of numerical result?

조회 수: 1 (최근 30일)
Light
Light 2013년 6월 7일
I have to choose higher row number (only one result)
A=[-1,1,1;0,-1,0;0,0,-1;1,0,0];
blnA = logical( A == -1 );
blnOut = find(all(ismember(A,[0,-1]),2));
blnOut =
2
3
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 7일
What is the expected result?
Light
Light 2013년 6월 7일
Expected result is 3. But if it is hard, just choose one result of them is enough.

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 7일

추가 답변 (1개)

Iain
Iain 2013년 6월 7일
bInOut(end)
Swap end for something else if you want a different result, like 1 for the minimum, or 2 for the 2nd, etc.

카테고리

Help CenterFile Exchange에서 Troubleshooting in Polyspace Products for Ada에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by