help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NaN in matrix


From: Xin Dong
Subject: Re: NaN in matrix
Date: Thu, 14 May 2009 09:54:48 -0500

OK. I searched and I found the solution.

data(isnan(data)) = 0;

Thanks,
Xin

On Thu, May 14, 2009 at 8:45 AM, Xin Dong <address@hidden> wrote:
Hi,

I wanna calculate the correlation of a matrix but I got a lot of NaN. I guess the problem is that some of the elements are NaN. Because the matrix is very big, I can't print it out to check. How can I know if there are NaNs in the matrix? And if there are, how can I change them to 0?

Thanks,
Xin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]