필터 지우기
필터 지우기

How to create a single array with datetime range?

조회 수: 1 (최근 30일)
BN
BN 2019년 10월 29일
답변: Sebastian Bomberg 2019년 10월 29일
Hello everyone
I want to create a single array (408 x 1) that filled monthly from 1982-01-01 to 2015-12-01.
like below:
1982-01-01
1982-02-01
1982-03-01
1982-04-01
.
.
.
2015-12-01
Thank you for any help you can provide.

채택된 답변

Sebastian Bomberg
Sebastian Bomberg 2019년 10월 29일
d = datetime(1982,1,1):calmonths(1):datetime(2015,12,1);
See also this doc page.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by