|
|
| 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)
|
| Zip File Content |
|
| Other Files |
isleap.m, license.txt
|
|
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 |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com