Hello,
I am having issues using the function datevec on a time series with a no-leap calendar. I have a 4000 year time series with a time series resembling:
[31, 59, 90, 120, 151, 181, 212…. 1460000]
I would like to create a matrix in the form [year, month, day] for the time series.
When I run the code,
datevalue = time + datenum(1,1,1)-2; DateVec = datevec(datevalue);
everything runs fine, but the values are wrong for the year and month. I was wondering if there was a way to use the datevec function with a no-leap calendar.
Thank you for any comments or suggestions.
Best Answer