|
From: | Alberto Simões |
Subject: | Re: loading matrix.. no error, but undefined variable |
Date: | Sat, 8 Mar 2014 15:49:20 +0000 |
I guess it depends on the file. For example, if X.txt is an empty file,On Sat, Mar 08, 2014 at 15:01:42 +0000, Alberto Simões wrote:
> Hello
>
> I am having some weirdness with octave. Just check:
>
> octave:1> load('X.txt')
> octave:2> whos
> octave:3> foo = load('X.txt')
> error: value on right hand side of assignment is undefined
>
> So, load seems to be failing. But no error is printed? That is strange.
>
> I found out there is a bug in the file (some lines have few elements), but
> shouldn't octave complain?
or contains nothing but comment lines, I would expect load to return
with no error and nothing loaded.
Can you attach your X.txt or another file that demonstrates the problem?
--
mike
foo.txt
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |