Documentation

get

Class:timeseries

查询timeseriesobject property values

Syntax

get(ts)
value = get(ts, PropertyName)

Description

get(ts)displays all properties and values of thetimeseriesobject,ts.

value = get(ts,PropertyName)returns the property value for the specifiedtimeseriesobject. The following syntax is equivalent:

value = ts.PropertyName

Input Arguments

ts

Atimeseriesobject.

PropertyName

String specifying the name of atimeseriesproperty. For a list oftimeseriesproperties, seetimeseries.

Output Arguments

value

String containing the value associated with the specified property.

Examples

创建一个timeseriesobject, and then get the name. This example gets the name three different ways:

ts1 = timeseries(rand(5,1),[1 2 3 4 5], 'Name', 'MyTimeseries'); get(ts1) get(ts1, 'Name') value = ts1.Name

See Also

|

Introduced before R2006a

Was this topic helpful?