Help CenterHelp Center
Determine if connections to FRED data servers are valid
x = isconnection(c)
c
FRED® connection object created with fred.
fred
x = isconnection(c) returns x = 1 if a connection to the FRED data server is valid, and x = 0 otherwise.
x = 1
x = 0
collapse all
Establish a connection c to a FRED® data server.
c = fred('https://fred.stlouisfed.org/');
Verify that c is a valid connection.
Adjust the display data format for currency.
format bank
Retrieve all historical data for the US / Euro Foreign Exchange Rate series.
series = 'DEXUSEU'; d = fetch(c,series);
d contains the series description.
d
Close the FRED® connection.
close(c)
Introduced in R2006b
close | fetch | fred
close
fetch
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office