Hi i have used matlab function in simulation and the function equation is
function y = ks(u)
y = u*lo;
end
I have difined lo in m.file at the same name of the function "ks"
lo=5;
evry time i eun the simulation i got error "Undefined function or variable 'lo'."

 채택된 답변

Ameer Hamza
Ameer Hamza 2020년 10월 2일

0 개 추천

Define lo inside the function
function y = ks(u)
lo = 5;
y = u*lo;
end

추가 답변 (0개)

카테고리

질문:

2020년 10월 2일

댓글:

2020년 10월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by