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 15:49:20 +0000

Hello

The attached file, for example.
Thanks :D


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

I guess it depends on the file. For example, if X.txt is an empty file,
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



--
Alberto Simões

Attachment: foo.txt
Description: Text document


reply via email to

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