%% Convert Calendar Durations to Calendar Days
% Create an array of calendar durations. Then, convert each value to the equivalent number of whole calendar days.

X = caldays(8:10) + hours(1.2345)

%

D = caldays(X)

% caldays returns a numeric array.
% Copyright 2015 The MathWorks, Inc.