I have code which adds hundreds of events to my time series object, and the code takes a very long time to complete. Here is an example of the code I am running:
clear allStep = 0.1;TS = timeseries( 1:Step:100, 1:Step:100 );EventTimeStamp = 20:Step:80;Length = size( EventTimeStamp, 2 );ticfor i = 1:LengthTS = addevent(TS, 'Data', EventTimeStamp(i));endtoc
Best Answer