MATLAB: 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

matrix manipulation

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?

Best Answer

A(isnan(A))=0
Related Question