%% Create Duration Array of Fixed-Length Years

X = [1 3 5; 10 12 15]

%

Y = years(X)

% Copyright 2015 The MathWorks, Inc.