Borrar filtros
Borrar filtros

deleting rows containing NaN

114 visualizaciones (últimos 30 días)
Varun Agrawal
Varun Agrawal el 7 de Abr. de 2015
Comentada: Tan Nguyen el 21 de Oct. de 2020
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

Respuesta aceptada

Thomas Koelen
Thomas Koelen el 7 de Abr. de 2015
Editada: madhan ravi el 5 de Jun. de 2020
Array(any(isnan(Array),2),:) = [];
  4 comentarios
Frank Pernett
Frank Pernett el 5 de Jun. de 2020
Thank you!!
Tan Nguyen
Tan Nguyen el 21 de Oct. de 2020
nice

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices 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