Error:File:D:\MATLAB\temp\work\Untitled2.m Line:2 Column:25 Missing variable or function.%t=[0:0.01:1];u=sin(2*pi,*t)%tao=0.025;nG=[50];dG=[0.05 1+50*tao50];G=tf(nG,dG);%y=lsim(G,u,t);%plot(t,u,'--',t,y,'-',t,u'-y','-.','linewidth',1)legend('u(t)','x
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 12:26:37
Error:File:D:\MATLAB\temp\work\Untitled2.m Line:2 Column:25 Missing variable or function.%t=[0:0.01:1];u=sin(2*pi,*t)%tao=0.025;nG=[50];dG=[0.05 1+50*tao50];G=tf(nG,dG);%y=lsim(G,u,t);%plot(t,u,'--',t,y,'-',t,u'-y','-.','linewidth',1)legend('u(t)','x
Error:File:D:\MATLAB\temp\work\Untitled2.m Line:2 Column:25 Missing variable or function.
%
t=[0:0.01:1];u=sin(2*pi,*t)
%
tao=0.025;
nG=[50];dG=[0.05 1+50*tao50];G=tf(nG,dG);
%
y=lsim(G,u,t);
%
plot(t,u,'--',t,y,'-',t,u'-y','-.','linewidth',1)
legend('u(t)','xo(t)','e(t)')
grid;xlabel('t(sec)'),ylabel('x(t)');
Error:File:D:\MATLAB\temp\work\Untitled2.m Line:2 Column:25 Missing variable or function.%t=[0:0.01:1];u=sin(2*pi,*t)%tao=0.025;nG=[50];dG=[0.05 1+50*tao50];G=tf(nG,dG);%y=lsim(G,u,t);%plot(t,u,'--',t,y,'-',t,u'-y','-.','linewidth',1)legend('u(t)','x
u=sin(2*pi,*t) %应该是点乘 .*
dG=[0.05 1+50*tao50]; %差空格 dG=[0.05 1+50*tao 50];
plot(t,u,'--',t,y,'-',t,u'-y','-.','linewidth',1) % t,u'-y','-.',有错,是否 t,-y,'-.',