mecefeci.m
来自「GPS TOOLBOX包含以下内容: 1、GPS相关常量和转换因子; 2、角」· M 代码 · 共 29 行
M
29 行
% mecefeci.m
% Scope: This MATLAB macro constructs the transformation matrix from ECEF
% frame to ECI (Earth Centered Inertial) frame; WGS-84 earth's
% rotation rate constant is used.
% Usage: moutput = mecefeci(dtime)
% Description of parameters:
% dtime - input, time elapsed since reference time, in seconds
% moutput - output, two-dimensional real array containing the
% transformation matrix from ECEF frame to ECI frame
% Remarks: The ECEF to ECI transformation takes into account only Earth's
% rotation, i.e. no Earth's precession and mutation effects.
% External Matlab macros used: wgs84con
% Last update: 04/05/00
% Copyright (C) 1997-00 by LL Consulting. All Rights Reserved.
function moutput = mecefeci(dtime)
wgs84con;
% global constants used: rot_rate (WGS-84 earth rotation rate, in rad/sec)
swie = sin(rot_rate*dtime);
cwie = cos(rot_rate*dtime);
moutput = eye(3);
moutput(1,1) = cwie;
moutput(1,2) = - swie;
moutput(2,1) = swie;
moutput(2,2) = cwie;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?