Constructing the serial date vector

조회 수: 1 (최근 30일)
Quantopic
Quantopic 2014년 10월 18일
댓글: Quantopic 2014년 10월 18일
Hi everyone,
I want to construct a serial date vector in matlab that consider a period of 2 years with frequency 1-minute.
Can some of you help me, please?

채택된 답변

dpb
dpb 2014년 10월 18일
Ignoring whether there's a leapyear in the two,
dn=datenum(y0,m0,d0,0,[0:2*365*24*60].',0);
Add one more day to the day count if there is.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time Series Objects에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by