quandl / Matlab

Quandl's Matlab module
55 stars 57 forks source link

matlab error undefined variable urlread2 #9

Closed hiraana closed 8 years ago

hiraana commented 8 years ago

i am running the below query in matlab and i got below error. what is wrong.

data = Quandl.get('NSE/OIL'); ??? Undefined variable "urlread2" or class "urlread2.urlread2".

Error in ==> api at 25 [response, extras] = urlread2.urlread2(url);

Error in ==> get at 124 csv = Quandl.api(path, 'params', params);

stepbot commented 8 years ago

there is a typo in the master master branch. see pull request at https://github.com/quandl/Matlab/pull/8 developers seem awol but its a simple change on line 25 of api.m

correction can be viewed at https://github.com/quandl/Matlab/pull/8/files

RaymondMcT commented 8 years ago

You need to put the urlread2 files inside the +urlread2 directory.

PachaTech commented 7 years ago

Errors in 2016b Windows 10 64bit.
I've got one +urlread2 (with files no folders) and same with +Quandl as subfolders in one main directory. Any advice? Headaches with Matlab 💯 Would like to use it -- but it'd be easier to just pull request it R or in python -- convert to CSV and then import into matlab --

:) I Enjoys the Quandl -- good work! Matlabs not enjoying the quandl -- or anything else lately.

Response stream is undefined
 below is a Java Error dump (truncated):
Error using urlread2.urlread2 (line 217)

Java exception occurred:
java.io.IOException: Server returned HTTP response code: 400 for URL:
https://www.quandl.com/api/v3/datasets/NSE/OIL.csv?&api_key=
mykey_&auth_token= mytoken_&sort_order=desc

Error in Quandl.api (line 37) [response, extras] = urlread2.urlread2(url, 'GET', '', headers);

Error in Quandl.get (line 124) csv = Quandl.api(path, 'params', params);