Eliminating specific data from a file

Currently I am working with variables that have 1400 data inputs each and some of them come out as NaN. Is there a way to scan the variables to remove the NaNs and create new ones automatically? I tried setting it up with a for and an if cycle but didn’t find much success, will send screenshot of my attempts asap since I don’t have them with me rn.

 Respuesta aceptada

Star Strider
Star Strider el 9 de Dic. de 2023

0 votos

There are functions like fillmissing to interpolate the NaN entries and rmmissing to delete them (the entire row with a NaN entry).

4 comentarios

Lorenzo
Lorenzo el 9 de Dic. de 2023
Thank you I’ll try as soon as I get home
Star Strider
Star Strider el 9 de Dic. de 2023
My pleasure!
Lorenzo
Lorenzo el 12 de Dic. de 2023
Sorry for the late reply, worked like a charm, thank you.
Star Strider
Star Strider el 12 de Dic. de 2023
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interpolation of 2-D Selections in 3-D Grids en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Dic. de 2023

Comentada:

el 12 de Dic. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by