If any of the matrix element or elements value is 1 or greater than 1 , then how can I delete that row or rows from a (M * N) matrix ?
1 回表示 (過去 30 日間)
古いコメントを表示
0 件のコメント
採用された回答
KSSV
2022 年 12 月 26 日
A = [2 4 1; 4 5 2 ; 2 4 1 ;3 1 3; 2 6 3] ;
idx = any(A==1,2) ;
A(idx,:)=[];
A
2 件のコメント
その他の回答 (1 件)
Image Analyst
2022 年 12 月 26 日
To learn other fundamental concepts, invest 2 hours of your time here:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!