필터 지우기
필터 지우기

deleting rows containing NaN

조회 수: 114 (최근 30일)
Varun Agrawal
Varun Agrawal 2015년 4월 7일
댓글: Tan Nguyen 2020년 10월 21일
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일
Array(any(isnan(Array),2),:) = [];
  댓글 수: 4
Frank Pernett
Frank Pernett 2020년 6월 5일
Thank you!!
Tan Nguyen
Tan Nguyen 2020년 10월 21일
nice

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by