Filter löschen
Filter löschen

Replace all nan values in a UITable with 0

1 Ansicht (letzte 30 Tage)
Adham Elkhouly
Adham Elkhouly am 29 Nov. 2022
Beantwortet: Adham Elkhouly am 29 Nov. 2022
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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by