help-octave
[Top][All Lists]
Advanced

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

Re: replacing NaN


From: david barnes
Subject: Re: replacing NaN
Date: Tue, 24 Apr 2001 14:13:00 +0100
User-agent: Mozilla/5.0 (X11; U; Linux 2.2.16 i686; en-GB; m18) Gecko/20010131 Netscape6/6.01


Hi Kai!

Kai Habel wrote:


M = [2 3;NaN 4]

M(isnan(M)) = 0.0

I got that far,
but 2 things
you'll get
  "error: single index only valid for row or column vector"
and note
  NaN * notNaN = NaN
and I can't see
  [i,j] = find(isnan(M))
helping much more
so I've gone for:
  line = strrep(line,'NaN','0.0');

but thanks anyway ...
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
-------------------------------------------------------------



reply via email to

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