[Top][All Lists]

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

Re: replacing NaN

From: Kai Habel
Subject: Re: replacing NaN
Date: Tue, 24 Apr 2001 15:06:28 +0200

david barnes schrieb:
> Hi all,
> I have to read some files
> where some rows in some columns
> have a NaN value
> but I want to replace the NaN's with 0.0's
> can anybody help here?

M = [2 3;NaN 4]

M(isnan(M)) = 0.0

Bye Kai

Kai Habel

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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