Main Content

get

Retrieve properties from Haver Analytics connection objects

    Description

    V = get(c) returns a MATLAB® structure containing property fields for the specified connection object, where c is a haver or haverdirect connection object. Each field contains a property name and value.

    V = get(c,PropertyName) returns a MATLAB structure containing the value of the specified property.

    example

    Examples

    collapse all

    You can use the get function to retrieve information about a specified property for a haver connection object.

    Create a haver connection to access a daily file.

    c = haver('d:\work\haver\data\haverd.dat')

    Use the haver connection to retrieve the name of the Haver Analytics® database.

    V = get(c,'DatabaseName')
    V =
    
        'd:\work\haver\data\haverd.dat'
    

    Input Arguments

    collapse all

    Haver Analytics connection, specified as a haver or haverdirect connection object.

    Name of property from the connection object, specified as a character vector or string scalar.

    Example: "DatabaseName"

    Version History

    Introduced in R2007a