help-octave
[Top][All Lists]
Advanced

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

Re: reading NaN with fscanf


From: Claudio Belotti
Subject: Re: reading NaN with fscanf
Date: Thu, 03 Mar 2005 09:50:46 +0100
User-agent: Debian Thunderbird 1.0 (X11/20050116)

Thank you for your help John!

Claudio


Please try the following patch.

Note that with this change, Octave will only recognize only recognize

  NaN
  Inf
  NA

and not things like Infinity, NaNQ, nan, inf, etc.  The three strings
Octave does recognize are the ones that it produces when writing these
values with printf.  If you need something else, you will have to
transform your data in some other way before reading.  Also note that
there could be some trouble reading from a pipe as backing up by more
than one character might not be possible.  But I'm not sure that this
is a significant problem.

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]