Replace all nan values in a UITable with 0

I am trying to replace all nan values in a uitable in MATLAB App designer with zeros. I tried using
app.UITable(isnan(app.UITable)) = 0;
but it doesn't change the nan values to zero

 Respuesta aceptada

Adham Elkhouly
Adham Elkhouly el 29 de Nov. de 2022
I used
app.UITable.Data = fillmissing(app.UITable.Data, 'constant', 0);
and all nan values were replaced by zero

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 29 de Nov. de 2022

Respondida:

el 29 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by