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 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by