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

X = calmonths(21:25) + caldays(8)

%

Y = calyears(X)

% Copyright 2015 The MathWorks, Inc.