How to generate a date vactor of weekly intervals.
Show older comments
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.
Accepted Answer
More Answers (1)
Andrei Bobrov
on 30 Apr 2012
out = datenum(2012,3,31+ (0:7:7*99)',0,0,0);
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!