get

Retrieve properties of Yahoo! connection objects

Syntax

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

Arguments

Connect

Yahoo!® connection object created with yahoo.

PropertyName

(Optional) A MATLAB® string or cell array of strings containing property names. Currently the only property name recognized is 'url'.

Description

value = get(Connect, 'PropertyName') returns the value of the specified properties for the Yahoo! connection object.

value = get(Connect) returns a MATLAB structure where each field name is the name of a property of Connect. Each field contains the value of the property.

Examples

Connect to a Yahoo! Finance:

c = yahoo
c =
 
     url: 'http://download.finance.yahoo.com'
      ip: []
    port: []

Retrieve the URL of the connection:

get(c, 'url')

ans =

http://download.finance.yahoo.com

See Also

| | |

Was this topic helpful?