%% Determine whether 2000, 2005, and 2020 are leap years
% This example shows how to determine whether 2000, 2005, and 2020 are leap years.

ly = leapyear([2000 2005 2020])

% Copyright 2012 The MathWorks, Inc.