How can i choose one result of numerical result?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
その他の回答 (1 件)
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 Center および File 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!