Error with Matlab Function
1 view (last 30 days)
dpb on 9 Feb 2014
You wrote a function with the variable name in the definition line but never assigned a RHS to it.
function ab = yourfunctionname(x)
% does what it does
As is easily seen, ab is never defined. ( z should have been ab or vice versa). Fix the similar problem appropriately in your function.