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: Mike Miller
Subject: Re: loading matrix.. no error, but undefined variable
Date: Sat, 8 Mar 2014 10:47:11 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

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

Attachment: signature.asc
Description: Digital signature


reply via email to

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