removing rows from matrix which equal particular number
1 回表示 (過去 30 日間)
古いコメントを表示
採用された回答
Adam Danz
2018 年 7 月 26 日
The first line identifies rows of A that have 99. The second line removes those rows.
removeIdx = any(A == 99, 2);
A(removeIdx,:) = []
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!