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?
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (1)
Thorsten
el 20 de Feb. de 2013
X(isnan(X)) = 0;
Categorías
Más información sobre NaNs en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!