MATLAB Function Reference
  Go to function:
    Search    Help Desk 
eomday    Examples   See Also

End of month

Syntax

Description

E = eomday(Y,M) returns the last day of the year and month given by corresponding elements of arrays Y and M.

Examples

Because 1996 is a leap year, the statement eomday(1996,2) returns 29.

To show all the leap years in this century, try:

See Also

datenum     Serial date number

datevec     Date components

weekday     Day of the week



[ Previous | Help Desk | Next ]