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

 Réponse acceptée

Thomas Koelen
Thomas Koelen le 7 Avr 2015
Modifié(e) : madhan ravi le 5 Juin 2020

13 votes

Array(any(isnan(Array),2),:) = [];

4 commentaires

Varun Agrawal
Varun Agrawal le 7 Avr 2015
Thanks a lot
TKS!!
Frank Pernett
Frank Pernett le 5 Juin 2020
Thank you!!
Tan Nguyen
Tan Nguyen le 21 Oct 2020
nice

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by