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

X = calmonths(2:2:6) + caldays(8)

%

Q = calquarters(X)

% Copyright 2015 The MathWorks, Inc.