Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Financial Time Series Object Performance
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!