getinterpmethod

timeseries interpolation method

Syntax

tsinterp = getinterpmethod(ts)

Description

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.

Examples

collapse all

Create a timeseries object and display its interpolation method.

ts = timeseries(rand(5,1));
tsinterp = getinterpmethod(ts)
tsinterp = 
'linear'

Input Arguments

collapse all

Input timeseries, specified as a scalar.

Data Types: timeseries

Introduced before R2006a