Azzera filtri
Azzera filtri

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?

19 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 20 Feb 2013
A(isnan(A))=0

Più risposte (1)

Thorsten
Thorsten il 20 Feb 2013
X(isnan(X)) = 0;

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by