%% Calculate decimal3
%% Calculate decimal3
% Calculate decimal year for October 10, 2004, at 12:21:00 p.m..

dy = decyear(2004,10,10,12,21,0)

% Copyright 2012 The MathWorks, Inc.