How do you create an array of date times given a starting date and number of days?
15 views (last 30 days)
Show older comments
I want to start at Jan/1/1900 and given the length of a vector, generate a vector of dates with 1 day intervals
e.g.
Vector1 = [1 2 3 4 5 6]
I want to create a datetime vector that will ouput
Datetimevector = [Jan/1/1900, Jan/2/1900, Jan/3/1900, Jan/4/1900, Jan/5/1900, Jan/6/1900]
I've tried to search the syntax for something that will give this output but I can't seem to find it.
Thanks in advance!
0 Comments
Accepted Answer
More Answers (0)
See Also
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!