Effacer les filtres
Effacer les filtres

replace 1 in place of NaN

2 vues (au cours des 30 derniers jours)
Jay Hanuman
Jay Hanuman le 11 Nov 2016
Réponse apportée : KSSV le 11 Nov 2016
I have matrix with some elements NaN. I want to replace them with 1. how to do it

Réponses (1)

KSSV
KSSV le 11 Nov 2016
Let K be your array which has nan.
K(isnan(K))=1;

Catégories

En savoir plus sur NaNs dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by