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 15:04:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux 2.2.16 i686; en-GB; m18) Gecko/20010131 Netscape6/6.01



Przemek Klosowski wrote:

yup, you're right: it doesn't work for matrices (I tested on a vector). How 
about

tmp=reshape(M,prod(size(M)))
tmp(isnan(tmp)) = 0.0
M=reshape(tmp,size(M))


easier to strrep(line),
though I'd be interested to know the cost ...


and note
  NaN * notNaN = NaN

Sure, but why is this a problem?

sorry,
internal monologue and  external dialogue threads
somehow mixed 8)

--
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]