IRIS Toolbox Reference Manual

daysinyear

Number of days in year

Syntax

N = daysinyear(Year)

Input arguments

Output arguments

Description

N is 365 for non-leap years, and 366 for leap years. Leap years are either years divisible by 4 but not 100, or years divisible by 400.

Example

daysinyear([2000,2200])
ans =
   366   365