?? ex7_8.m
字號:
G=tf(1,[1,3,3,1]); N=10; Tdly=1;
[nP,dP]=pade(Tdly,3); G_o=G*tf(nP,dP);
[k,L,T]=getfod(G_o);
t1=0; t2=0; tend=50; U=1;
[Gc1,Kp,Ti,Td]=ziegler(3,[k,L,T,N]); [Kp,Ti,Td]
G_c=feedback(G_o*Gc1,1);
step(G_c); hold on
num=G.num{1}; den=G.den{1};
[tt1,x,yy1]=sim('c7fsimd',tend,[]); plot(tt1,yy1)
[Kc,p,wc,w]=margin(G_o); Tc=2*pi/wc;
[Gc1,Kp,Ti,Td]=ziegler(3,[Kc,Tc,N]); [Kp,Ti,Td]
G_c=feedback(G_o*Gc1,1); step(G_c); hold on
[tt2,x,yy2]=sim('c7fsimd',tend,[]); plot(tt2,yy2)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -