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

X = calmonths(15:17) + caldays(8) + hours(1.2345)

%

M = calmonths(X)

% Copyright 2015 The MathWorks, Inc.