deleting rows containing NaN
114 views (last 30 days)
Show older comments
Varun Agrawal
on 7 Apr 2015
Commented: Tan Nguyen
on 21 Oct 2020
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 Comments
Accepted Answer
Thomas Koelen
on 7 Apr 2015
Edited: madhan ravi
on 5 Jun 2020
Array(any(isnan(Array),2),:) = [];
4 Comments
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!