matlab报错怎么解决? 20
上周还能用,代码也没改过,现在所有的代码都执行不出来怎么回事?%P11,2ti,2)num1=[001];den1=[10.51];t=0:0.1:10;step(num...
上周还能用,代码也没改过,现在所有的代码都执行不出来怎么回事?
%P11,2ti,2)
num1=[0 0 1];
den1=[1 0.5 1];
t=0:0.1:10;
step(num1,den1,t);
text(3,1.5,'wn=1');
grid;
hold on;
num2=[0 0 4];
den2=[1 1 4];
step(num2,den2,t);
text(1.8,1.5,'wn=2');
hold on;
num3=[0 0 16];
den3=[1 2 16];
step(num3,den3,t);
text(0.8,1.5,'wn=4');
hold on;
num4=[0 0 36];
den4=[1 3 36];
step(num4,den4,t);
text(0,1.5,'wn=6');
hold on;
title('Step-Response Curves for G(s)=1/[s^2+2(zeta)s+1]');
axis([0 10,0,2]);
xlabel('t');
ylabel('c(t)'); 展开
%P11,2ti,2)
num1=[0 0 1];
den1=[1 0.5 1];
t=0:0.1:10;
step(num1,den1,t);
text(3,1.5,'wn=1');
grid;
hold on;
num2=[0 0 4];
den2=[1 1 4];
step(num2,den2,t);
text(1.8,1.5,'wn=2');
hold on;
num3=[0 0 16];
den3=[1 2 16];
step(num3,den3,t);
text(0.8,1.5,'wn=4');
hold on;
num4=[0 0 36];
den4=[1 3 36];
step(num4,den4,t);
text(0,1.5,'wn=6');
hold on;
title('Step-Response Curves for G(s)=1/[s^2+2(zeta)s+1]');
axis([0 10,0,2]);
xlabel('t');
ylabel('c(t)'); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询