Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Financial Time Series Object Performance

1 visualizzazione (ultimi 30 giorni)
Cagdas Ozgenc
Cagdas Ozgenc il 16 Mar 2013
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Hello,
I am trying to use the Financial Time Series Object, because the utility functions that come with it look neat. However the object creation seems to be very slow.
Below is my code-snippet to create the object. Unfortunately my date data is not in one of the accepted formats so I have to read the data first with csvread then create the fints object.
rawdata = csvread(fullPathFilename,1);
fts = fints(datenum(num2str(rawdata(:,1)),'yyyymmdd'),rawdata(:,2:12), {'Open','High','Low','Close','UnadjustedClose','Cash','Volume','OpenInterest','TotalVolume','TotalOpenInterest','UnadjustedVolume'});
This is taking 10 times slower than simply reading the data into matrices with csvread (I am loading around 2000 stocks). Maybe it is due to date conversion, I don't know. How can I speed it up? What other performance bottlenecks are there in fints related functions?
Should I stick to matrices, instead?
Thanks

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by