Function Reference
— Function File: e = eomday (y, m)

Return the last day of the month m for the year y.

Demonstration 1

The following code

 y = 1900:1999;
 e = eomday (y, 2 * ones (1, 100));
 y (find (e == 29))

Produces the following output

ans =

 Columns 1 through 11:

   1904   1908   1912   1916   1920   1924   1928   1932   1936   1940   1944

 Columns 12 through 22:

   1948   1952   1956   1960   1964   1968   1972   1976   1980   1984   1988

 Columns 23 and 24:

   1992   1996