help-octave
[Top][All Lists]
Advanced

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

Re: replacing NaN


From: John W. Eaton
Subject: Re: replacing NaN
Date: Tue, 24 Apr 2001 08:43:34 -0500

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).
  Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 John W. Eaton.
  This is free software with ABSOLUTELY NO WARRANTY.
  For details, type `warranty'.

  *** This is a development version of Octave.  Development releases
  *** are provided for people who want to help test, debug, and improve
  *** Octave.
  ***
  *** If you want a stable, well-tested version of Octave, you should be
  *** using one of the stable releases (when this development release
  *** was made, the latest stable version was 2.0.16).

  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



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