📄 robot_robust.m
字号:
% robot_robust.m
% Check robustness of NC under parameter variations
% of plant. robot2_arm.mdl is used for simulation.
% Chou, PenChen, 2004-1-12
% Normal case
MDL='robot2_arm';
figure(3);
K=10; a=2;
[t,x,y]=sim(MDL,[0:0.05:FT]);
subplot(221);plot(t,[y(:,2) y(:,3)]);grid
title(['I/O with K=' num2str(K) ';a=' num2str(a)]);
axis([0 FT -2 2])
% Parameter variations
K=11; a=1;
[t,x,y]=sim(MDL,[0:0.05:FT]);
subplot(222);plot(t,[y(:,2) y(:,3)]);grid
title(['I/O with K=' num2str(K) ';a=' num2str(a)]);
axis([0 FT -2 2])
K=11; a=4;
[t,x,y]=sim(MDL,[0:0.05:FT]);
subplot(223);plot(t,[y(:,2) y(:,3)]);grid
title(['I/O with K=' num2str(K) ';a=' num2str(a)]);
axis([0 FT -2 2])
K=10; a=0.5;
[t,x,y]=sim(MDL,[0:0.05:FT]);
subplot(224);plot(t,[y(:,2) y(:,3)]);grid
title(['I/O with K=' num2str(K) ';a=' num2str(a)]);
xlabel('Time (sec.)');
axis([0 FT -2 2])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -