T(1)=AstTime;
T(2)=AstTime(2451545+(0:1:10)')
[Cell,Desc,Units]=AstTime.timetype
[Cell,Desc]=AstTime.timesystem
% An AstTime object with the current time in JD and UTC
T=AstTime
% An AstTime object in iso string and TAI
T=AstTime('2000-01-01T00:00:00.000','iso','TAI')
% A vector of AstTime objects in Julian years
T=AstTime((0:1:10),'jy')
T=AstTime(2451545);
% convert to ISO format in the UT1 system
AstT=convert(T,'iso','UT1')
% Convert to Julian years in the UTC system
AstT=convert(T,'JY')
% convert to ISO format in the UT1 system. Output is an array
AstT=convert2array(T,'iso','UT1')
T=AstTime(2451545);
% Binary operation on two AstTime objects and store the result as AstTime
bfun2asttime(T,T,@plus)
T=convert(T,'jy');
% Adding an AstTime object with a scalar.
% Note that regardless the AstTime type, the scalar is always in days
bfun2asttime(T,365,@plus)
T = AstTime(2451545+(0:1:10)');
AstTV=ufun2asttime(T,@mean)
AstTV=ufun2asttime(T,@sin)
T(1) = AstTime(2451545+(1:1:10)');
T(2) = AstTime((1:1:10)','jy');
% Note that the answer is in days (regardless of the input type!)
A = ufun2scalar(T,@std)
T(1) = AstTime(2451545+(1:1:10)');
T(2) = AstTime((1:1:10)','jy');
% add 1 day to all times - output is always in JD/UTC:
Tn=T+1
Tn=T(1)+T(1)
Tn=T(2)-10  % subtract 10 days
% calculate the mean of all times in each element.
% Units are identical to input units:
MeanT=mean(T)
% calculate the mean of all times in each element in JD (regardless of the input type):
mean2array(T)
median2array(T)
std2array(T)
range2array(T)
% calculate the histogram of times in a single element AstTime object:
T=AstTime(2451545+(1:1:100));
[N,E]=histcounts(T);
T=AstTime(2451545);
[LST,JD_UT1]=lst(T)
julday(T)
% The length of the synodic month at 3000 AD
T=AstTime(1000,'jy');
SM=synodic_month(T)
% The obliquity of the ecliptic in radians now:
obliquity(AstTime)
The class AstTime has no Constant property or Static method named 'mlx'.