[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 |
Howdy,
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 2.0.13.95 (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].
Peace,
Andy
--
address@hidden
---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL. To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------
- load ASCII file with "NaN",
Andy Jacobson <=