Clear Filters
Clear Filters

Error with Matlab Function

1 view (last 30 days)
UTS on 9 Feb 2014
Answered: dpb on 9 Feb 2014
I got this error :
Output argument "AB" (and maybe others) not assigned during call to
I would be greatly appreciated for your assistance,

Accepted Answer

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.

More Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!