📄 examp_171.m
字号:
% examp_171.m
plant=tf(10,[1 1 0]);
figure(1);rlocus(plant)
sgrid
axis('square');
K=0.05;
op1=K*plant;
cl1=op1/(1+op1); cl1=minreal(cl1)
figure(2);subplot(211);step(cl1)
% Controller design
comp=tf([1 3],[1 18]);Kc=7.8;
op2=Kc*comp*plant;
figure(1);rlocus(op2)
sgrid
axis('square');
axis([-10 0 -5 5])
cl2=op2/(1+op2); cl2=minreal(cl2)
t=0:0.2:12;
figure(2);subplot(212);step(cl2,t)
axis([0 12 0 1.5])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -