Error evaluating MATLAB function . MATLAB error message:Undefined command/fu
将函数名为comper.m的文件嵌入到simulink中的matlab fuction模块中,运行老提示错误:Error evaluating MATLAB function in 'simemechanic/MATLAB Fcn1'. MATLAB error message:Undefined command/functionUndefunction [e]=comperr(u)
%u(1)=f1;
%u(2)=theta2;
%u(3)=s3;
r1=100;
r2=300;
r3=30;
ex=r1*cos(u(1))+r2*cos(u(2))-u3;
ey=r1*sin(u(1))+r2*sin(u(2))-r3;
e=norm([ex,ey]);fined command/function 'comperr.m'为什么呀?
[此贴子已经被作者于2006-12-23 11:18:08编辑过]