replace 1 in place of NaN
Mostrar comentarios más antiguos
I have matrix with some elements NaN. I want to replace them with 1. how to do it
Respuestas (1)
KSSV
el 11 de Nov. de 2016
Let K be your array which has nan.
K(isnan(K))=1;
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!