help-octave
[Top][All Lists]
Advanced

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

Re: loading matrix.. no error, but undefined variable


From: Alberto Simões
Subject: Re: loading matrix.. no error, but undefined variable
Date: Sat, 8 Mar 2014 16:10:44 +0000

Hello

Do not think it is any big deal :)
Was mostly curious.

Thanks


On Sat, Mar 8, 2014 at 4:08 PM, Mike Miller <address@hidden> wrote:
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



--
Alberto Simões

reply via email to

[Prev in Thread] Current Thread [Next in Thread]