When I execute the following code (please load attached 'f1.mat' and 'aspread.mat'):
load f1load aspreadDates_times=datestr(aspread.dates + aspread.times,'dd-mmm-yyyy HH:MM');tic;f_new=f1(Dates_times);toc; Indexing this financial time series object takes a very long time using the DATESTR function. This takes more than 2 minutes for 121000 dates and took 21 minutes for 129000 elements.
Best Answer