function memberVars=getMembers(h)
%GETMEMBERS Return a cell array with the names of @timeseries objects.

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

memberVars = {};
props = fields(get(h));
ind = 1;
for k=1:length(props)
    if isequal(class(h.(props{k})),'tsdata.timeseries')
        memberVars{ind} = props{k};
        ind = ind+1;
    end
end
