%% Create Array of Calendar Days

X = magic(5);
D = caldays(X)

% Copyright 2015 The MathWorks, Inc.