mjul2str2.m 270 Bytes
Newer Older
Pierre Cazenave's avatar
Pierre Cazenave committed
1 2 3 4 5 6 7
function strout = mjul2str2(MJD)
% Convert a modified Julian day to a Matlab datestr style string 
% Do not return year

mjul2matlab = 678942; %difference between modified Julian day 0 and Matlab day 0
strout = datestr(MJD+mjul2matlab);
strout = strout(1:end-5);