Changing <undefined> in a table to NA

13 visualizaciones (últimos 30 días)
Claire Hollow
Claire Hollow el 29 de Mayo de 2020
Comentada: Abdulah Al Mubin el 21 de Mayo de 2021
Hello. I feel this should not be too hard but I still can't seem to figure it out. I have a 2500x14 table, in random spots throughout the table some are '<undefined>', I want to change all of those undefined to 'NA'. I tried working with isundefined but always end up with an error. Thank you in advance for the help!

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 29 de Mayo de 2020
I suggest trying to use fillmissing.
B = fillmissing(A,'constant','NA');
  3 comentarios
Claire Hollow
Claire Hollow el 29 de Mayo de 2020
Never mind I got it working now. Thank you so much for the help!
Abdulah Al Mubin
Abdulah Al Mubin el 21 de Mayo de 2021
Could you please share your solution?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical 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