Skip to Main Content Skip to Search
Product Documentation

get - Class: timeseries

Query timeseries object property values

Syntax

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

Description

get(ts) displays all properties and values of the timeseries object, ts.

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

value = ts.PropertyName

Input Arguments

ts

A timeseries object.

PropertyName

String specifying the name of a timeseries property. For a list of timeseries properties, see timeseries.

Output Arguments

value

String containing the value associated with the specified property.

Examples

Create a timeseries object, 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

set | timeseries

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS