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

 채택된 답변

Adham Elkhouly
Adham Elkhouly 2022년 11월 29일

0 개 추천

I used
app.UITable.Data = fillmissing(app.UITable.Data, 'constant', 0);
and all nan values were replaced by zero

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2022년 11월 29일

답변:

2022년 11월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by