Documentation Center

  • Trial Software
  • Product Updates

set

Class: timeseries

Set properties of timeseries object

Syntax

set(ts, PropertyName, Value)
set(ts, PropertyName)
set(ts)

Description

set(ts, PropertyName, Value) sets the named property, Name, of the timeseries object, ts, to the value, Value. The following syntax is equivalent:

 ts.Property = Value

set(ts, PropertyName) displays the value of the named property for the timeseries object, ts.

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

Input Arguments

ts

A timeseries object.

PropertyName

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

Value

The value to which you want to set the named property.

Examples

Create a timeseries, set its name to mytimeseries, and then view the timeseries properties:

ts1 = timeseries(rand(5,1),[1 2 3 4 5]);
set(ts1, 'Name', 'mytimeseries')
set(ts1)

See Also

|

Was this topic helpful?