eomday

eomday(Y,M) returns the last day of the year Y and month M.

Examples

>> eomday(2015,2)#

 28
>> eomday([2015; 2016; 2017],2)#

           28
           29
           28
>> eomday(2016,1:3)#

           31           29           31

See also

month | year