I want to add the directory containing "+Quandl" to the list within MATLAB, the problem is I don't really know how exactly this works? Any Help?
1 次查看(过去 30 天)
显示 更早的评论
I tried Downloading the file "+Quandl" to the Toolbox in Matlab R2013b in the driver C ("C:\Program Files\MATLAB\R2013b\toolbox" then I went to Matlab and addpath('\\C:\Program Files\MATLAB\R2013b\toolbox\+Quandl') but Matlab send me a warning messaged informing me that "Warning: Package directories not allowed in MATLAB path:" Therefore, I decided to change the directory of the file "+Quandl" to another location "\\isad.isadroot.ex.ac.uk\UOE\User\Desktop\Finance Opti\+Quandl" then I commend Matlab to use the path i.e. I comment addpath('\\isad.isadroot.ex.ac.uk\UOE\User\Desktop\Finance Opti\+Quandl') the same thing appears again "Warning: Package directories not allowed in MATLAB path: \\isad.isadroot.ex.ac.uk\UOE\User\Desktop\Finance Opti\+Quandl " My ultimate goal is to retrieve data from Quandl.com through Matlab. I used after applying the above path this function mydata = Quandl.get('NSE/OIL'); but again Matlab did not recognise this "Error using get Invalid handle" Any help would be appreciated.
0 个评论
回答(1 个)
Davin
2014-9-30
Hello Rami,
First, you need to add in pathtools, the folder containing +Quandl and not +Quandl itself. Normally, you need to have in +Quandl, the get.m file. Then, you need to authenticate yourself by an ID, you get from the Quandl site by typing quandl.auth('your id') in Matlab.Then you will be able to import data from Quandl into Matlab.
A classic way to import data is : Quandl.get('GOOG/NYSE_CL', 'trim_start', '2003-01-02', 'trim_end', '2012-12-19')
It should work. But note Quandl is not very stable on Matlab, you might have some issues afterwards with dates and if you are coding with Quandl. I am encounting some issues with coding involving Quandl.
Cheers
Davin
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!