Thread Subject: Increase timeseries creation speed

Subject: Increase timeseries creation speed

From: Bastian

Date: 30 Oct, 2009 19:08:03

Message: 1 of 1

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.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com