|
From: | Alberto Simões |
Subject: | Re: loading matrix.. no error, but undefined variable |
Date: | Sat, 8 Mar 2014 16:10:44 +0000 |
On Sat, Mar 08, 2014 at 15:49:20 +0000, Alberto Simões wrote:Good, thanks. I get the same thing. It looks to me like the file format
> The attached file, for example.
auto-detection is what's hiding the error in this case. If you
specifically try different formats, load *does* report an error:
octave:19> load foo.txt
octave:20> whos
octave:21> load -ascii foo.txt
error: load: foo.txt: inconsistent number of columns near line 2
error: load: unable to extract matrix size from file 'foo.txt'
octave:21> load -text foo.txt
error: load: empty name keyword or no data found in file 'foo.txt'
octave:21> load -binary foo.txt
error: load: unable to read read binary file
octave:21> load -mat foo.txt
error: load: can't read binary file
If you think this is something that should be fixed, please submit a bug
report at https://savannah.gnu.org/bugs/?func=additem&group=octave
HTH,
--
mike
[Prev in Thread] | Current Thread | [Next in Thread] |