|
I am experimenting with the timeseries function because it makes some promising functionality, like concatenation of multiple timeseries, available to me. However, I am finding that the process (function) for creating the timeseries is VERY slow using the following syntax:
TS = timeseries(Temp,DateTime);
I have also applied the following "non-timeseries" code for converting the same data from strings to date vectors and found that specifying the date-time format (i.e. mm/dd/yy HH:MM:SS) for the datevec function increased the performance dramatically:
[Y M D H MIN S] = datevec(DateTime,'mm/dd/yy HH:MM:SS');
Is there something similar that I can apply to increase the speed at which my timeseries object is created? or can I preallocate the size of the timeseries to speed up its creation? Any insight would be much appreciated.
|