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에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by