⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdepoch.m

📁 航天工程工具箱
💻 M
字号:
function epoch=stdepoch(N,type)
%STDEPOCH  Sets standard epoch in YMDhms format.
%   EPOCH = STDEPOCH([N[,TYPE]]) is the standard epoch
%   of either type AD, J2000 or B1950. If omitted then
%   DATE defaults to current date. N is the number of
%   satellites (defaults to N=1).
%
%   See also CLOCK.

% Copyright (c) 2003-06-09, B. Rasmus Anthin.

if ~nargin, N=1;end
if nargin<2, type='';end
switch(upper(type))
case 'AD'
   date=zeros(1,6);
case 'J2000'
   date=[2000 1 1, 12 0 0];
case 'B1950'
   date=[1949 12 31, 22 9 7.2];
otherwise
   date=clock;
end
epoch=repmat(date,N,1);

⌨️ 快捷键说明

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