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

📄 plotresult.m

📁 ESTIMATION OF AIRCRAFT TRAJECTORY FROM ITS MOTION USING KALMAN TRACKING FILTER
💻 M
字号:
% Post Processing of the Data for Plotting:
pos = [10 40 500 300];
h_1 = figure(1);
set(h_1,'pos',pos);
polar(PolarCoords(:,2) - Measurement_noise(:,2), ...
      PolarCoords(:,1) - Measurement_noise(:,1),'r')
hold on
rangehat = sqrt(X_hat(:,1).^2+X_hat(:,3).^2);
bearinghat = atan2(X_hat(:,3),X_hat(:,1));
polar(bearinghat,rangehat,'g')
text(-35000,-50000,'Aircraft Tragectory (red) and Tracked Trajectory (green)','Color','b','FontSize',14)
h_2 = figure(2);
set(h_2,'pos',[pos(1)+500 pos(2) pos(3:4)]);
plot(residual(:,1)); grid;set(gca,'xlim',[0 length(residual)]);
xlabel('Number of Measurements');
ylabel('Position Estimate Error - Feet')
title('Estimation Residual for Position','Color','b','FontSize',14)

h_3 = figure(3);
set(h_3,'pos',[pos(1) pos(2)+350 pos(3:4)]);
XYMeas = [PolarCoords(:,1).*cos(PolarCoords(:,2)), ...
          PolarCoords(:,1).*sin(PolarCoords(:,2))];
t_full = [0:0.1:100]';    
t_hat = [0:deltat:100]';    
subplot(211)
plot(t_full,XYCoords(:,2),'r');
grid on;hold on
plot(t_full,XYMeas(:,2),'g');
plot(t_hat,X_hat(:,3),'b');
title('Vertical Position','Color','b','FontSize',14);
legend('Aircraft','Tracker','Estimated',3);
hold off
subplot(212)
plot(t_full,XYCoords(:,1),'r');
grid on;hold on
plot(t_full,XYMeas(:,1),'g');
plot(t_hat,X_hat(:,1),'b');
xlabel('Time (sec)');
title('Horizontal Position','Color','b','FontSize',14);
hold off
figure (4);
h3;

⌨️ 快捷键说明

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