[Top][All Lists]

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

load ASCII file with "NaN"

From: Andy Jacobson
Subject: load ASCII file with "NaN"
Date: Mon, 25 Oct 1999 12:27:44 +0100


        Is there any way to recognize the string "NaN" during ASCII
        input?  I get the following surprising result:

$ cat > test.dat
1 2 NaN 3
$ octave
Octave, version (i386-pc-linux-gnu).
Copyright (C) 1996, 1997, 1998 John W. Eaton.
This is free software with ABSOLUTELY NO WARRANTY.
For details, type `warranty'.

octave:1> load test.dat
octave:2> test
test =

  1  2  2  2

octave:3> quit

        Matlab, for instance, recognizes the string "NaN" for such
        "load" commands, i.e., test = [1 2 NaN 3].



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]