xfom.m

来自「GPS TOOLBOX包含以下内容: 1、GPS相关常量和转换因子; 2、角」· M 代码 · 共 53 行

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