[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
-------------------------------------------------------------
- C/C++ Interface to Image Magick libs., Hayram Nicacio, 2001/04/23
- Re: C/C++ Interface to Image Magick libs., Etienne Grossmann, 2001/04/24
- Re: replacing NaN, Przemek Klosowski, 2001/04/24
- Re: replacing NaN, david barnes, 2001/04/24
- Re: replacing NaN, John W. Eaton, 2001/04/24
- Re: replacing NaN, david barnes, 2001/04/24
- Re: replacing NaN, Przemek Klosowski, 2001/04/24
- Re: replacing NaN, david barnes, 2001/04/24