|
From: | david barnes |
Subject: | Re: replacing NaN |
Date: | Tue, 24 Apr 2001 14:49:13 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux 2.2.16 i686; en-GB; m18) Gecko/20010131 Netscape6/6.01 |
thanks John, this may be my future choice, but for now, I'll stick to strrep(line) just so I can knock the data on the head but it's great to know! John W. Eaton wrote:
On 24-Apr-2001, david barnes <address@hidden> wrote: | thanks Przemek ,| | but doens't this need treatment to work| if [a] is a matrix and not a vector? In 2.0.x, yes. In the current development versions, no: GNU Octave, version 2.1.34 (i686-pc-linux-gnu). octave:1> x = [NaN, 1, 2; 3, NaN, 4; 5, 6, NaN] x = NaN 1 2 3 NaN 4 5 6 NaN octave:2> x(isnan(x)) = 0.0 x = 0 1 2 3 0 4 5 6 0 jwe
David --David DS Barnes MED | Imperial College | Exhibition Rd | London sw7 2bx
t/f:0207 594 7181/7127 tap vein, mine deep, share gold ------------------------------------------------------------- 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 -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |