vgdecef.m
来自「GPS TOOLBOX包含以下内容: 1、GPS相关常量和转换因子; 2、角」· M 代码 · 共 25 行
M
25 行
% vgdecef.m
% Scope: This MATLAB macro performs the transformation from geodetic to
% ECEF coordinates for a given position vector specified by the
% external points in geodetic coordinates; WGS-84 constants are used.
% Usage: pecef = vgdecef(pgd,pgdref)
% Description of parameters:
% pgd - input, geodetic position of the final point, where
% pgd(1) = latitude in radians
% pgd(2) = longitude in radians
% pgd(3) = altitude in meters
% pgdref - input, geodetic position of the reference point, where
% pgdref(1) = latitude in radians
% pgdref(2) = longitude in radians
% pgdref(3) = altitude in meters
% pecef - output, ECEF position vector, with components in meters
% External Matlab macros used: tgdecef, wgs84con
% Last update: 01/07/01
% Copyright (C) 1996-01 by LL Consulting. All Rights Reserved.
function pecef = vgdecef(pgd,pgdref)
pfinal = tgdecef(pgd(1),pgd(2),pgd(3));
pref = tgdecef(pgdref(1),pgdref(2),pgdref(3));
pecef = pfinal - pref;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?