[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loading matrix.. no error, but undefined variable
From: |
Mike Miller |
Subject: |
Re: loading matrix.. no error, but undefined variable |
Date: |
Sat, 8 Mar 2014 11:08:57 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sat, Mar 08, 2014 at 15:49:20 +0000, Alberto Simões wrote:
> The attached file, for example.
Good, thanks. I get the same thing. It looks to me like the file format
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
signature.asc
Description: Digital signature