Error with Matlab Function

1 次查看(过去 30 天)
UTS
UTS 2014-2-9
回答: dpb 2014-2-9
I got this error :
Output argument "AB" (and maybe others) not assigned during call to
I would be greatly appreciated for your assistance,

采纳的回答

dpb
dpb 2014-2-9
You wrote a function with the variable name in the definition line but never assigned a RHS to it.
SOTOO
function ab = yourfunctionname(x)
% does what it does
z=x.^1.5;
end
As is easily seen, ab is never defined. ( z should have been ab or vice versa). Fix the similar problem appropriately in your function.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by