📄 ga_plot33.m
字号:
% GA_plot33.m
% Plot time responses under plant varaitions
% PenChen Chou, 7-9-2001
K=10;a1=3;a2=2;
sim('ex33_pid',[0 4]);
figure(2);subplot(231);plot(tout,yout);
title('K=10;a1=3;a2=2');
K=5; a1=1.5; a2=1;
sim('ex33_pid',[0 4]);
figure(2);subplot(232);plot(tout,yout);
title('K=5;a1=1.5;a2=1');
K=5; a1=6; a2=1;
sim('ex33_pid',[0 4]);
figure(2);subplot(233);plot(tout,yout);
title('K=5;a1=6;a2=1');
K=5; a1=1.5; a2=4;
sim('ex33_pid',[0 4]);
figure(2);subplot(234);plot(tout,yout);
title('K=5;a1=1.5;a2=4');
K=20; a1=1.5; a2=1;
sim('ex33_pid',[0 4]);
figure(2);subplot(235);plot(tout,yout);
XC=['Time(s), Kp=' num2str(Kp), ',Ki=' num2str(Ki),...
',Kd=' num2str(Kd)];
xlabel(XC)
title('K=20;a1=1.5;a2=1');
K=20; a1=6; a2=4;
sim('ex33_pid',[0 4]);
figure(2);subplot(236);plot(tout,yout);
title('K=20;a1=6;a2=4');
K=10;a1=3;a2=2;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -