tsOut = setinterpmethod(ts, method)
| Parameter | Description |
|---|---|
| ts | Input timeseries object. |
| method | Interpolation method: linear, zoh, or nearest. |
| Parameter | Description |
|---|---|
| tsOut | Output timeseries object with the interpolation method set. |
setinterpmethod Updates ts.DataInfo.Interpolation using the requested interpolation method.
ts = timeseries([1; 2; 3]);
ts = setinterpmethod(ts, 'zoh');
getinterpmethod(ts)
| Version | Description |
|---|---|
| 2.0.0 | initial version |