silly question.
how to create time series vector for a period of one specific date(say 2 February 2010) to some specific date(11 November 2010) with an interval of one second, one minute, 1 hour,3 hours etc?

 채택된 답변

Stephen23
Stephen23 2018년 5월 21일
편집: Stephen23 2018년 5월 21일

1 개 추천

t1 = datetime(2010,02,02);
t2 = datetime(2010,11,11);
t1:seconds(1):t2
t1:minutes(1):t2
t1:hours(1):t2
t1:hours(3):t2

댓글 수: 1

pruth
pruth 2018년 5월 21일
Aaahaaa !!! fantastic. thanks. life is so easy.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2018년 5월 21일

댓글:

2018년 5월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by