tsOut = times(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. |
times Multiplies data values element by element and preserves the time axis from a timeseries input.
ts = timeseries([1; 2], [1; 2]);
out = ts .* 10;
out.Data
| Version | Description |
|---|---|
| 2.0.0 | initial version |