[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NaN
From: |
Matt Funk |
Subject: |
NaN |
Date: |
Thu, 18 Nov 2004 17:33:13 +0000 |
User-agent: |
KMail/1.6.2 |
Hi all,
I am trying load a 2D vector from a text file that was actually saved out by
another octave script via the save fcn. Anyway, the load() didn't work so i
used fscanf. That works fine, and it reads all the values in correctly until
i hit the first NaN in the vector (there are several) and after that it
doesn't read correctly anymore. In fact it reads all zeros after that
regardless if it's a NaN or a good value.
Are there any quick fixes for this situation. It'd be REALLY nice if i could
read those in since i have a lot of files to read in.
Also, when i used the load() fcn it read something in but it is a 1x1 entity,
whereas my vector is something like 10x25. Looking at that thing it prints
the right vector on the terminal, but i can't index it as a vector (obviously
since it is a 1x1)
so, any fixes?
thanks
mat
-------------------------------------------------------------
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
-------------------------------------------------------------
- NaN,
Matt Funk <=
- Re: NaN, Paul Laub, 2004/11/18
- Re: NaN, Miroslaw Kwasniak, 2004/11/19
- Re: NaN, Miroslaw Kwasniak, 2004/11/19