help-octave
[Top][All Lists]
Advanced

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

Re: replacing NaN


From: Przemek Klosowski
Subject: Re: replacing NaN
Date: Tue, 24 Apr 2001 09:16:59 -0400

I think this is what you are looking for

a=[1,2,3,NaN,5,6,Inf] 
     1    2    3  NaN    5    6  Inf
a(isnan(a))=0
     1    2    3    0    5    6  Inf



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