vep.m

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

M
24
字号
%                                vep.m
%  Scope:  This MATLAB macro computes the value of the vertical error 
%          probable (VEP).
%  Usage:  yvep = vep(y)
%  Description of parameters:
%          y     - input, error vector containing the errors on y axis
%          yvep  - output, vertical error probable (VEP) value
%  Last update:  06/26/00
%  Copyright (C) 1996-00 by LL Consulting. All Rights Reserved.

function  yvep = vep(y)

[nrowy,ncoly] = size(y);
if  (nrowy < 2) | (ncoly ~= 1)
   disp('Error  -  VEP; check the dimensions of the input vector');
   disp('  ');
   return
end 

ymean = mean(y);
for  k = 1:nrowy
   ytemp(k) = abs(ymean - y(k));
end
yvep = median(ytemp');

⌨️ 快捷键说明

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