Error with Matlab Function

1 vue (au cours des 30 derniers jours)
UTS
UTS le 9 Fév 2014
Réponse apportée : dpb le 9 Fév 2014
I got this error :
Output argument "AB" (and maybe others) not assigned during call to
I would be greatly appreciated for your assistance,

Réponse acceptée

dpb
dpb le 9 Fév 2014
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.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by