⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chap3_11plot.m

📁 机器人控制仿真程序一书的所有源代码
💻 M
字号:
close all;

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

figure(2);
subplot(211);
plot(t,w(:,1),'r');
xlabel('time(s)');ylabel('w1');
subplot(212);
plot(t,w(:,2),'r');
xlabel('time(s)');ylabel('w2');

figure(3);
subplot(211);
plot(t,u(:,1),'r');
xlabel('time(s)');ylabel('u1');
subplot(212);
plot(t,u(:,2),'r');
xlabel('time(s)');ylabel('u2');

figure(4);
subplot(211);
plot(t,tol(:,1),'r');
xlabel('time(s)');ylabel('tol1');
subplot(212);
plot(t,tol(:,2),'r');
xlabel('time(s)');ylabel('tol2');

figure(5);
subplot(211);
plot(t,d1(:,1),'r',t,d1(:,2),'b');
xlabel('time(s)');ylabel('d1 and d1p');
subplot(212);
plot(t,d2(:,1),'r',t,d2(:,2),'b');
xlabel('time(s)');ylabel('d2 and d2p');

⌨️ 快捷键说明

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