[Top][All Lists]

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

Re: max() and min() of nan/inf

From: Mirek Kwasniak
Subject: Re: max() and min() of nan/inf
Date: Thu, 23 Sep 1999 13:43:43 +0200
User-agent: Mutt/1.0pre2i

On Thu, Sep 23, 1999 at 01:25:23PM +0300, Olli Saarela wrote:
> If, in your particular Octave calculation, you wish to take the minimum
> (maximum) of the non-NaN values in a vector, please replace all the NaN
> values with +Inf (-Inf) before calling min (max).


it's much simple to use somthing like

   max( x( finite( x ) ) )
   min( x( finite( x ) ) )


Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see
Instructions for unsubscribing:

reply via email to

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