Generating a sequence of dates

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

 采纳的回答

Here's one way:
datestr(datenum('02/11/08','dd/mm/yy')+(0:28:224),'dd/mm/yy')

3 个评论

thank you very much. JUst to ask how did you calculated (in MAtlab) the number 224?
Thanks a lot

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by