Undefined function or variable?
이전 댓글 표시
I have this code any problema than you can find?: I'm using MatlabFcn in simulink
function out = fcn(qp, tao)
fc=8.955;
fv=5.234;
fs=18.617;
vs=0.145;
delv=1.032;
delt=0.172;
ts=0.888;
fk=(fc*sign(qp))+(fv*qp);
if qp == 0 && abs(tao)< fs
fq= tao
end
if qp == 0 && abs(tao)>= fs
fq=fs*sign(tao)
end
if qp ~= 0
fq=fk
end
out = fq;
But even when "fq" has a value always. I can't play the program.
Undefined function or variable 'out'. The first assignment to a local variable determines its class.
Function 'ImpovedStaticCoulombViscous' (#133.132.135), line 10, column 4: "out" Launch diagnostic report.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Filter Design and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!