Products & Services Solutions Academia Support User Community Company

Learn more about Datafeed Toolbox   

fred.get - Retrieve properties of FRED connection objects

Syntax

value = get(Connect, 'PropertyName')
value = get(Connect)

Arguments

Connect

FRED connection object created with the fred function.

'PropertyName'

A MATLAB string or cell array of strings containing property names. Property names are:

  • 'url'

  • 'ip'

  • 'port'

Description

value = get(Connect, 'PropertyName') returns a MATLAB structure containing the value of the specified properties for the FRED connection object.

value = get(Connect) returns the value for all properties.

Examples

Establish a connection, c, to a FRED data server:

c = fred('http://research.stlouisfed.org/fred2/')

Retrieve the port and IP address for the connection:

p = get(c, {'port', 'ip'})
p = 
     port: 8194
     ip: 111.222.33.444

See Also

fred.close, fred.fetch, fred.isconnection

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS