FUNCTION REFERENCE

eomday

Last day of the month.

Last day of the month.

Syntax

E = eomday(Y, M)

Returns the number of days in month M of year Y (Gregorian leap years).

Scalar arguments combine with arrays of one common size.

Example

eomday([2015 2016 2100], 2)   % [28 29 28]

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.