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

📄 chap9_8plot.m

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

figure(1);
subplot(211);
plot(t,y(:,1),'r',t,y(:,2),'b');
xlabel('time');ylabel('Position tracking');
subplot(212);
plot(t,cos(t),'r',t,y(:,3),'b');
xlabel('time');ylabel('Speed tracking');

figure(2);
subplot(211);
plot(t,y(:,2),'r',t,y(:,4),'b');
xlabel('time');ylabel('x1 and its observer value');
subplot(212);
plot(t,y(:,3),'r',t,y(:,5),'b');
xlabel('time');ylabel('x2 and its observer value');

figure(3);
subplot(211);
plot(t,y(:,2)-y(:,4),'r');
xlabel('time');ylabel('error betweem x1 and x2p');
subplot(212);
plot(t,y(:,3)-y(:,5),'r');
xlabel('time');ylabel('error betweem x2 and x2p');

⌨️ 快捷键说明

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