📄 xfom.m
字号:
% xfom.m
% Scope: This MATLAB program plots the figure of merit value versus the
% estimated position error.
% Usage: xfom
% Inputs: - selection of the range of estimated position error; the default
% is 1 to 6000 meters
% Outputs: - plot of the figure of merit (based on ICD-059 table versus)
% versus estimated position error
% External Matlab macros used: fom
% Last update: 06/27/00
% Copyright (C) 1998-00 by LL Consulting. All Rights Reserved.
clear
close all
yes = 'y';
disp(' ');
% Specify the range for estimated position error,; the default is 1 to 6000 m.
answer1 = input('Do you want to use the default range [1 6000] --> (y/n)[y] ','s');
disp(' ');
if isempty(answer1)
answer1 = yes;
end
if strcmp(answer1,yes)
epe_start = 1.;
epe_stop = 6000.;
else
epe_start = input('Select the lower value of the range, in meters --> ');
epe_stop = input('Select the upper value of the range, in meters --> ');
disp(' ');
epe_start = round(epe_start);
epe_stop = round(epe_stop);
end
% Determine the fom values for the specified range
for k = epe_start:epe_stop
outfom(k) = fom(k);
end
x = epe_start:epe_stop;
% Execute the plot
figure(1)
plot(x,outfom), grid,...
xlabel('Estimated Position Error, in meters');
ylabel('Figure of Merit');
title('Figure of merit versus Estimated Position Error');
axis([epe_start epe_stop 0 10]);
disp('End of the program XFOM ');
disp(' ');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -