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

9 vues (au cours des 30 derniers jours)
Mr M.
Mr M. le 11 Juin 2018
How to remove rows in which at least one NaN values can found? Is it possible to do this in one script line?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur NaNs dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by