Generating a sequence of dates

7 ビュー (過去 30 日間)
ektor
ektor 2012 年 5 月 19 日
HI all, I would like to ask if there is a way of generating the below sequence of dates.
'2/11/08'
'30/11/08' '
28/12/08'
25/01/09'
'22/02/09'
'22/03/09'
'19/04/09'
'17/05/09'
14/06/09'
AS you can see I have observations every 4-week period.
Thanks

採用された回答

the cyclist
the cyclist 2012 年 5 月 19 日
Here's one way:
datestr(datenum('02/11/08','dd/mm/yy')+(0:28:224),'dd/mm/yy')
  3 件のコメント
Andrei Bobrov
Andrei Bobrov 2012 年 5 月 19 日
8*28=224
ektor
ektor 2012 年 5 月 21 日
Thanks a lot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series Objects についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by