Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

get

Retrieve properties of FRED connection objects

Syntax

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

Arguments

c

FRED® connection object created with fred.

'PropertyName'

A MATLAB® character vector, string, cell array of character vectors, or string array containing property names. Property names are:

  • 'url'

  • 'ip'

  • 'port'

Description

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

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

Examples

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

c = fred('https://fred.stlouisfed.org/')

Retrieve the port and IP address for the connection.

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

Introduced in R2006b

Was this topic helpful?