Quantcast

Documentation Center

  • Trial Software
  • Product Updates

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

|

Was this topic helpful?