help-octave
[Top][All Lists]
Advanced

[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:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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