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

📄 chap3_8plot.m

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

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

figure(2);
subplot(211);
plot(t,dx(:,1),'r',t,dx(:,3),'b');
xlabel('time(s)');ylabel('velocity tracking of x axis');
subplot(212);
plot(t,dx(:,2),'r',t,dx(:,4),'b');
xlabel('time(s)');ylabel('velocity tracking of y axis');

figure(3);
plot(t,tol(:,1),'r',t,tol(:,2),'b');
xlabel('time(s)');ylabel('Conrol input tol1 and tol2');

figure(4);
subplot(311);
plot(t,D(:,1),'r',t,D(:,2),'b');
xlabel('time(s)');ylabel('D and estimated D');
subplot(312);
plot(t,C(:,1),'r',t,C(:,2),'b');
xlabel('time(s)');ylabel('C and estimated C');
subplot(313);
plot(t,G(:,1),'r',t,G(:,2),'b');
xlabel('time(s)');ylabel('G and estimated G');

⌨️ 快捷键说明

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