tsOut = plus(a, b)
tsOut = a + b
| Parameter | Description |
|---|---|
| a | Left timeseries object or scalar. |
| b | Right timeseries object or scalar. |
| Parameter | Description |
|---|---|
| tsOut | Resulting timeseries object. |
plus Adds data values and preserves the time axis from a timeseries input.
a = timeseries([1; 2], [1; 2]);
b = timeseries([10; 20], [1; 2]);
out = a + b;
out.Data
| Version | Description |
|---|---|
| 2.0.0 | initial version |