title(Bode Diagram ) (2 ) 惯性环节: 1? Ts K (K=1 、 K=10 、 T=0.1 、 1) K=1,T=0.1 cp]=margin(G) bode(num,den) grid title( ′ Bode Diagram ′)G=1 --------- 0.1 s+1 Continuous-time transfer function K=1,T=1 >> num=[1]; den=[1,1]; G=tf(num,den) [Gm,Pm,Wcg,Wcp]=margin(G) bode(num,den) grid title( ′ Bode Diagram ′)G =1 ----- s+1 Continuous-time transfer function. Gm =InfPm = -180Wcg =NaN K=10,T=0.1 >> num=[10]; den=[0.1,1]; G=tf(num,den) [Gm,Pm,Wcg,Wcp]=margin(G) bode(num,den) grid title( ′ Bode Diagram ′)G =10 --------- 0.1 s+1 Continuous-time transfer function. Gm = InfPm =95.7406Wcg =NaNWcp =99.4731 K=10,T=1 >> num=[10]; den=[1,1]; G=tf(num,den) [Gm,Pm,Wcg,Wcp]=margin(G) bode(num,den) grid title( ′ Bode Diagram ′)G =10 ----- s+1 Continuous-time transfer function. Gm =InfPm =95.7406Wcg =NaNWcp =9.9473