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

 채택된 답변

Thomas Koelen
Thomas Koelen 2015년 4월 7일
편집: madhan ravi 2020년 6월 5일

13 개 추천

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

댓글 수: 4

Varun Agrawal
Varun Agrawal 2015년 4월 7일
Thanks a lot
Carlos Andrés Ramos Romero
Carlos Andrés Ramos Romero 2018년 10월 11일
TKS!!
Frank Pernett
Frank Pernett 2020년 6월 5일
Thank you!!
Tan Nguyen
Tan Nguyen 2020년 10월 21일
nice

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 NaNs에 대해 자세히 알아보기

태그

질문:

2015년 4월 7일

댓글:

2020년 10월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by