leapyear
Determine leap year.
📝Syntax
tf = leapyear(year)
📥Input Arguments
Parameter Description
year year: scalar or array numeric value.
📤Output Arguments
Parameter Description
tf Leap year determination result: scalar or array logical value.
📄Description

leapyear determines leap years.

Leap years is done by Gregorian calendar rules.

💡Examples
tf = leapyear([2020 2021 2022])
🔗See Also
datenum
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub