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?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (1)
Thorsten
le 20 Fév 2013
X(isnan(X)) = 0;
Catégories
En savoir plus sur NaNs dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!