Skip to Main Content Skip to Search
Product Documentation

getinterpmethod - Class: timeseries

Interpolation method for timeseries object

Syntax

getinterpmethod(ts)

Description

getinterpmethod(ts) returns the interpolation method that the timeseries object ts, uses as a string.

Input Arguments

ts

The timeseries object from which you want to extract the interpolation method.

Definitions

interpolation method

Predefined interpolation methods are zero-order hold, zoh, and linear interpolation, linear. Linear interpolation is the default.

Examples

Create a timeseries object, and then get its interpolation method:

ts = timeseries(rand(5));
getinterpmethod(ts)

MATLAB returns:

linear

See Also

setinterpmethod | timeseries

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS