I have (double type) matrix where I have NaN values. I want to change all NaN values to 0 value. How Can I do that?
Ältere Kommentare anzeigen
I have (double type) matrix where I have NaN values. I want to change all NaN values to 0 value. How Can I do that?
Akzeptierte Antwort
Weitere Antworten (1)
Thorsten
am 20 Feb. 2013
X(isnan(X)) = 0;
Kategorien
Mehr zu NaNs finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!