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: mmuetzel
Subject: Re: error: Value on right hand side of assignment is undefined
Date: Fri, 23 Nov 2018 09:27:47 -0600 (CST)

mmuetzel wrote
> Your function A doesn't have a return value. Also you should use a
> variable
> that has the same name as the function it is in. Even if it isn't a syntax
> error, it might be confusing.
> 
> Try something like:
> 
> function val = A(x, y)
> val = x + y;
> endfunction
> 
> 
> Markus


Sorry. That should read: "... you should *not* use a variable that has the
same name as the function it is used in."

Markus




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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