getinterpmethod - Interpolation method for timeseries object

Syntax

getinterpmethod(ts)

Description

getinterpmethod(ts) returns the interpolation method as a string that is used by the timeseries object ts. Predefined interpolation methods are 'zoh' (zero-order hold) and 'linear' (linear interpolation). The method strings are case sensitive.

Examples

  1. Create a timeseries object.

    ts = timeseries(rand(5));
  2. Get the interpolation method for this object.

    getinterpmethod(ts)
    
    ans =
    
         linear

See Also

setinterpmethod, timeseries, tsprops

  


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