deleting rows containing NaN
51 ビュー (過去 30 日間)
古いコメントを表示
I have 2 columns and 1000+ rows matrix. I want to delete the rows in which either column 1 or 2 is NaN
thank you
0 件のコメント
採用された回答
Thomas Koelen
2015 年 4 月 7 日
編集済み: madhan ravi
2020 年 6 月 5 日
Array(any(isnan(Array),2),:) = [];
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で NaNs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!