chap3_4plot.m

来自「机器人控制仿真程序一书的所有源代码」· M 代码 · 共 21 行

M
21
字号
close all;

figure(1);
plot(t,x(:,1),'r',t,x(:,2),'b');
xlabel('time(s)');ylabel('position tracking');

figure(2);
plot(t,tol1(:,1),'r');
xlabel('time(s)');ylabel('tol1');

figure(3);
plot(t,tol2(:,1),'r');
xlabel('time(s)');ylabel('tol2');

figure(4);
plot(t,tol(:,1),'r');
xlabel('time(s)');ylabel('tol');

figure(5);
plot(t,f(:,1),'r',t,f(:,2),'b');
xlabel('time(s)');ylabel('f and fn');

⌨️ 快捷键说明

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