This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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