%% Convert Date Vector to Date Number

datenum([2009,4,2,11,7,18])

% Copyright 2015 The MathWorks, Inc.