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

📄 chap6_5plot.m

📁 滑模变结构控制MATLAB仿真书籍的源码
💻 M
字号:
close all;

figure(1);
plot(t,xe,'r');
xlabel('time(s)');ylabel('x error');

figure(2);
plot(t,ye,'r');
xlabel('time(s)');ylabel('y error');

figure(3);
plot(t,te,'r');
xlabel('time(s)');ylabel('angle error');

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure(4);
plot(t,th(:,1),'b');
hold on;
plot(t,th(:,2),'r');
xlabel('time(s)');ylabel('ideal and practical angle');

figure(5);
plot(P(:,3),P(:,4),'r');
xlabel('xr');ylabel('yr');

hold on;
plot(P(:,1),P(:,2),'b');
xlabel('x1');ylabel('x2');

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure(6);
plot(t,q(:,1),'r');
xlabel('time(s)');ylabel('Control input v');

figure(7);
plot(t,q(:,2),'r');
xlabel('time(s)');ylabel('Control input w');

⌨️ 快捷键说明

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