tsOut = minus(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. |
minus Subtracts data values and preserves the time axis from a timeseries input.
a = timeseries([10; 20], [1; 2]);
b = timeseries([1; 2], [1; 2]);
out = a - b;
out.Data
| Version | Description |
|---|---|
| 2.0.0 | initial version |