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.

답변 (1개)

Davin
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

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by