MATLAB: Daysadd Matrix Business calendar formats

business calendar formats date conversionData Acquisition ToolboxDatabase ToolboxFinancial Time Series ToolboxStatistics and Machine Learning Toolbox

Hi world,
I have a very basic question. from a date vector I would like to create a matrix increasing from one to thirty years. The vector has been created with the function bdates = busdays(sdate, edate, bdmode)
Would you have any thoughts? Regards,

Best Answer

sdate = '26 DEC 2015';
edate = '26 DEC 2045' ;
bdmode ='D';
vec = datestr(busdays(sdate,edate,bdmode))