chap10_4plot.m

来自「模糊自适应控制那本书后的所有仿真代码,对初学simulink的同学很有帮助」· M 代码 · 共 22 行

M
22
字号
close all;

figure(1);
plot(t,r(:,1),'r',t,y(:,1),'b');
xlabel('time(s)');ylabel('position tracking of link 1');
figure(2);
plot(t,r(:,2),'r',t,y(:,3),'b');
xlabel('time(s)');ylabel('position tracking of link 2');

figure(3);
plot(t,u(:,1),'r');
xlabel('time(s)');ylabel('initial control of link 1');
figure(4);
plot(t,u(:,2),'r');
xlabel('time(s)');ylabel('initial control of link 2');

figure(5);
plot(t,tol(:,1),'r');
xlabel('time(s)');ylabel('practical control of link 1');
figure(6);
plot(t,tol(:,2),'r');
xlabel('time(s)');ylabel('practical control of link 2');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?