Count Days in Months
조회 수: 39 (최근 30일)
이전 댓글 표시
Hey, I want to know the number of days of each month from 1982-01-01 to 2015-12-31.
I tried some codes from Matlab Help. till now I wrote this code:
t1 = datetime(1982,01,01); %start date
t2 = datetime(2015,12,31); %end date
T = t1:t2; %creating a range
no idea how to do it. in the end, I want to have one array (1*408)
thank you all
댓글 수: 0
채택된 답변
Steven Lord
2019년 11월 12일
The "Specify Step Size", "Compare Fixed-Length Duration and Calendar Duration Step Sizes", and "Dates and End of Month" sections on this documentation page will be of use to you as will the days function.
댓글 수: 0
추가 답변 (2개)
Nadir Altinbas
2019년 11월 12일
why do not see this help topic
www.mathworks.com/help/matlab/ref/datetime.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!