Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Introduced before R2006a

Was this topic helpful?