deleting rows containing NaN

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

 Risposta accettata

Thomas Koelen
Thomas Koelen il 7 Apr 2015
Modificato: madhan ravi il 5 Giu 2020
Array(any(isnan(Array),2),:) = [];

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by