Generating a sequence of dates

7 Ansichten (letzte 30 Tage)
ektor
ektor am 19 Mai 2012
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

Akzeptierte Antwort

the cyclist
the cyclist am 19 Mai 2012
Here's one way:
datestr(datenum('02/11/08','dd/mm/yy')+(0:28:224),'dd/mm/yy')
  3 Kommentare
Andrei Bobrov
Andrei Bobrov am 19 Mai 2012
8*28=224
ektor
ektor am 21 Mai 2012
Thanks a lot

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Time Series Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by