Skip to Main Content Skip to Search
Product Documentation

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

get | 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