sudden problem with 'fetch' and FRED database

4 views (last 30 days)
pikachu
pikachu on 4 Jul 2015
Commented: Alistair on 7 Jul 2015
Hi, I haven't had problems using the Datafeed Toolbox and the 'fetch' command to retrieve FRED data until now. This is the error I get:
>> d = fetch(fred,'GDPC96') Index exceeds matrix dimensions.
Error in fred/fetch (line 94) d.Data = [datenum(str2num(tmp(:,1:4)),str2num(tmp(:,6:7)),str2num(tmp(:,9:10))) str2num(tmp(:,11:end))]; %#ok
Would appreciate any suggestions or comments. Thank you so much.
  2 Comments
pikachu
pikachu on 5 Jul 2015
It's temperamental if you use the default url. It works if you change the url to 'https':
connect = fred('https://research.stlouisfed.org/fred2/'); d = fetch(connect,'GDPC96');
Alistair
Alistair on 7 Jul 2015
I am not able to connect to this URL. I just get the following message. Can anyone else get data from FRED? Error using fred (line 55) Unable to connect to given URL.

Sign in to comment.

Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!