Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Financial Time Series Object Performance

1 回表示 (過去 30 日間)
Cagdas Ozgenc
Cagdas Ozgenc 2013 年 3 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by