How to remove rows in which at least one NaN values can found?

4 views (last 30 days)
How to remove rows in which at least one NaN values can found? Is it possible to do this in one script line?

Accepted Answer

Image Analyst
Image Analyst on 11 Jun 2018
If m is your matrix:
m(any(isnan(m), 2), :) = []

More Answers (0)

Community Treasure Hunt

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

Start Hunting!