Calculate leap year
이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
ISLEAP True for leap year.
ISLEAP(Year) returns 1 if Year is a leap year and 0 otherwise.
ISLEAP is only set for gregorian calendar, so Year >= 1583
Syntax: ISLEAP(YEAR)
Inputs:
YEAR - Year of interest (default = current year).
You can input a vector of years.
Outputs:
Logical vector.
Example:
Calling on Matlab the function: isleap
Answer is: 0
Calling on Matlab the function: x=isleap([2007 2008])
Answer is:
x = 0 1
Created by Giuseppe Cardillo
giuseppe.cardillo-edta@poste.it
Modified after Simon Jan suggestions
To cite this file, this would be an appropriate format:
Cardillo G. (2007) Isleap: a simple routine to test if a year is leap.
http://www.mathworks.com/matlabcentral/fileexchange/14172
인용 양식
Giuseppe Cardillo (2026). Isleap (https://github.com/dnafinder/isleap), GitHub. 검색 날짜: .
GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음
