chap7_8plot.m

来自「刘金琨老师作品」· M 代码 · 共 28 行

M
28
字号
close all;

figure(1);
subplot(211);
plot(t,qd(:,1),'r',t,q(:,1),'b');
xlabel('time(s)');ylabel('position tracking of link 1');
subplot(212);
plot(t,qd(:,4),'r',t,q(:,3),'b');
xlabel('time(s)');ylabel('position tracking of link 2');

figure(2);
subplot(211);
plot(t,ut(:,1),'r');
xlabel('time(s)');ylabel('control input 1');
subplot(212);
plot(t,ut(:,2),'r');
xlabel('time(s)');ylabel('control input 2');

figure(3);
subplot(311);
plot(t,xite(:,1),'r');
xlabel('time(s)');ylabel('xite1');
subplot(312);
plot(t,xite(:,2),'r');
xlabel('time(s)');ylabel('xite2');
subplot(313);
plot(t,xite(:,3),'r');
xlabel('time(s)');ylabel('xite3');

⌨️ 快捷键说明

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