chap6_5plot.m

来自「《模糊自适应控制理论及其应用》中所有matlab模型。」· M 代码 · 共 37 行

M
37
字号
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 + =
减小字号Ctrl + -
显示快捷键?