tsOut = set(ts, 'PropertyName', value)
tsOut = set(ts, 'Name1', value1, 'Name2', value2)
| Parameter | Description |
|---|---|
| ts | Timeseries object. |
| PropertyName | Property to set, such as Name, Data, Time, DataInfo, TimeInfo, or UserData. |
| value | New property value. |
| Parameter | Description |
|---|---|
| tsOut | Output timeseries object with the updated properties. |
set Returns a copy of the timeseries object with one or more properties changed.
ts = timeseries([1; 2; 3], [10; 11; 12], 'Name', 'speed');
ts = set(ts, 'Name', 'velocity');
ts.Name
| Version | Description |
|---|---|
| 2.0.0 | initial version |