function out = getInterpMethod(ts)
%GETINTERPMETHOD  Get name of interpolation method for time series object
%
%   getInterpMethod(TS) returns a string giving the interpolation method
%   used by the time series object TS. Predefined interpolation methods are  
%   'zoh' (zero order hold) and 'linear'(linear interpolation). Users can 
%   also define their own interpolation methods under different names. 
%
%   Note that this method is case sensitive.
%
%   Example:
% 
%   Create a time series object:
%   ts=tsdata.timeseries(rand(5))
%
%   Get the interpolation method for this object:
%   getInterpMethod(ts)
%
%   See also TSDATA.TIMESERIES/SETINTERPMETHOD, TSDATA.TIMESERIES/TIMESERIES

%   Author(s): Rong Chen
%   Copyright 1986-2003 The MathWorks, Inc. 
%   $Revision: 1.1.6.1 $  $Date: 2004/12/26 21:35:03 $

out=ts.datainfo.interpolation.name;