creating time vector ?

조회 수: 6 (최근 30일)
pruth
pruth 2018년 5월 21일
댓글: pruth 2018년 5월 21일
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일
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개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by