Produce a Date vector starting with a desired date
27 views (last 30 days)
I want to generate a date vector that starts at, say '01-Jan-2001 00:00:00' and skips by hour all the way up to '31-Dec-2031 23:00:00'.
I tried this:
Date = datevec('01-Jan-2011 00:00:00','dd-mmm-yyyy hh:mm:ss',
But I don't think that's the way.
Any attempt to help is appreciated,