fom.m

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

M
35
字号
%                                fom.m
%  Scope:  This MATLAB macro sets the figure of merit value based on ICD-059 table.
%  Usage:  xfom = fom(epe)
%  Description of parameters:
%          epe  - input, estimated position error, in meters
%          xfom - output, figure of merit value
%  Remark: If an incorrect negative value is entered, i.e. epe < 0, than the figure
%          of merit is set as -1.
%  Last update: 06/27/00
%  Copyright (C) 1998-00 by LL Consulting. All Rights Reserved.

function   xfom = fom(epe)

if  epe < 0
    xfom = - 1;
elseif  epe <= 25.
    xfom = 1;
elseif  epe <= 50.
    xfom = 2;
elseif  epe <= 75.
    xfom = 3;
elseif  epe <= 100.
    xfom = 4;
elseif  epe <= 200.
    xfom = 5;
elseif  epe <= 500.
    xfom = 6;
elseif  epe <= 1000.
    xfom = 7;
elseif  epe <= 5000.
    xfom = 8;
else
    xfom = 9;
end	

⌨️ 快捷键说明

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