%% Extract Year Number from Dates
% Extract the year numbers from an array of dates.

t = datetime(2010,05,31):calyears(1):datetime(2015,02,28)

%

y = year(t)

% Copyright 2015 The MathWorks, Inc.