Clear Filters
Clear Filters

deleting rows containing NaN

118 views (last 30 days)
Varun Agrawal
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

Accepted Answer

Thomas Koelen
Thomas Koelen on 7 Apr 2015
Edited: madhan ravi on 5 Jun 2020
Array(any(isnan(Array),2),:) = [];
  4 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!