[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:19:12 -0600 (CST) |
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
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html