马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
num=20*conv([1,0.08],[1 0.2]);
den=conv(conv(conv([1 0.0775],[1 0.275]),[1 8.32]),[1 2*0.81*1.383 1.383^2]);
g=tf(num,den); %高阶系统
yss=1; %阶跃值为1
t=0:0.1:10;
[yout,t]=step(g);
[y1,i]=max(yout);
Mp=(yout-yss)/yss % Mp为超调量
j=100;while yout(j)<1+dta&yout(j)>1-dta;j=j-1;end
ts=t(j); %调整时间
tp=t(i); %峰值时间
以上是本站的一位朋友提供的计算超调量的MATLAB程序举例。但仿真时 j=100;while yout(j)<1+dta&yout(j)>1-dta;j=j-1;end 这一句出错。。懂的朋友能帮忙看看原因吗?语句中 dta 是什么意思?谢谢了。。 |