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

9 visualizaciones (últimos 30 días)
How to remove rows in which at least one NaN values can found? Is it possible to do this in one script line?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by