|
|
| File Information |
| Description |
ISLEAP returns 1 if Year is a leap year and 0 otherwise. ISLEAP is only set for gregorian calendar, so Year >= 1583.
The Gregorian calendar has 97 leap years every 400 years:
Every year divisible by 4 is a leap year.
However, every year divisible by 100 is not a leap year.
However, every year divisible by 400 is a leap year after all.
So, 1700, 1800, 1900, 2100, and 2200 are not leap years, but 1600, 2000, and 2400 are leap years.
You can find more details on:
http://www.advancedmcode.org/isleap.html
You can visit my homepage http://home.tele2.it/cardillo
My profile on XING http://www.xing.com/go/invita/13675097
My profile on LinkedIN http://it.linkedin.com/in/giuseppecardillo |
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 11 Dec 2007 |
more elegant use of logical operators |
| 11 Dec 2007 |
another logial indexing improvement |
| 24 Sep 2008 |
Improvement in input error handling |
| 12 Nov 2008 |
Changes in help section |
| 05 Oct 2009 |
Change in description |
| 13 Oct 2009 |
Modified after Simon Jan comment (also added into the help lines) |
| 23 Dec 2009 |
Changes in description |
|
Contact us at files@mathworks.com