?? chap6_5plot.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');
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -