timeseries interpolation method
timeseries
tsinterp = getinterpmethod(ts)
example
tsinterp = getinterpmethod(ts) returns the interpolation method used by the timeseries object. tsinterp can be 'linear' for linear interpolation (default) or 'zoh' for zero-order hold.
ts
tsinterp
'linear'
'zoh'
collapse all
Create a timeseries object and display its interpolation method.
ts = timeseries(rand(5,1)); tsinterp = getinterpmethod(ts)
tsinterp = 'linear'
Input timeseries, specified as a scalar.
Data Types: timeseries
setinterpmethod | timeseries
setinterpmethod
You have a modified version of this example. Do you want to open this example with your edits?