help-octave
[Top][All Lists]
Advanced

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

Re: [Error] value on right hand side of assignment is undefined


From: Philip Nienhuis
Subject: Re: [Error] value on right hand side of assignment is undefined
Date: Sun, 23 Nov 2014 12:58:15 -0800 (PST)

breakinpoint wrote
> Hi, i'm looking for some help.
> I created 2 functions (trab1 and alinea2) both on octave root.
> 
> trab1 code:

> 
> alinea2 code:

> 
> The problem is that when call alinea2 i get "value on right hand side of
> assignment is undefined" at line:17 column:6 and i can't solve it.
> If anyone can help me with this i would appreciate.

A first trick is to specify in the Octave terminal:

debug_on_error (1)

before trying again. Then Octave will stop (in debug mode) at the offending
statement. At that point (in the middle of a function) you can find out the
state and values of variables by just typing their name. You'll soon find
out which of the variables or function values is still undefined.

FYI, this is one of the great assets of a script language like Octave
offers.

(To quit debug mode, type 

dbquit

)
If the debug_on_error setting gets in the way later on you can repeat it
with a value of 0 instead of 1.
BTW next time mention your operating system and Octave version.

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Error-value-on-right-hand-side-of-assignment-is-undefined-tp4667448p4667449.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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