How to generate a date vactor of weekly intervals.
显示 更早的评论
Hello,
How can I generate a date vactor in which I know the start date let say end of last month (03/31/2012) and I know the frequency say weekly and I know how many rows I want let say 100 rows.
采纳的回答
更多回答(1 个)
Andrei Bobrov
2012-4-30
out = datenum(2012,3,31+ (0:7:7*99)',0,0,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!