%% Convert datetime Array to Date Vectors

format short g

t = [datetime('now');datetime('tomorrow')]
DateVector = datevec(t)

% Copyright 2015 The MathWorks, Inc.