function display(h)
%DISPLAY @metadata display method
%
%   Author(s): Rong Chen
%   Copyright 1986-2003 The MathWorks, Inc.
%   $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:34:26 $

fprintf(1,'\n%s\n\n','Time Series Meta Data Object');
fprintf(1,'%s\n\n','Standard Information :');
fprintf(1,'      %s%s%s\n', 'Name', blanks(22-length('Name')), h.Name);
fprintf(1,'      %s%s%s\n', 'Unit', blanks(22-length('Units')), h.Units);  
fprintf(1,'      %s%s%s\n', 'GridFirst', blanks(22-length('GridFirst')), num2str(h.GridFirst));
fprintf(1,'      %s%s%s\n\n', 'Interpolation Method', blanks(22-length('Interpolation Method')), get(h.Interpolation,'Name'));
% custom defined properties
if ~isempty(h.Scale) || ~isempty(h.Offset)
    fprintf(1,'%s\n\n','Custom Information :');
    if ~isempty(h.Offset)
        fprintf(1,'      %s%s%s\n', 'Offset', blanks(22-length('Offset')), num2str(h.Offset));  
    end
    if ~isempty(h.Scale)
        fprintf(1,'      %s%s%s\n', 'Scale', blanks(22-length('Scale')), num2str(h.Scale));
    end
    fprintf(1,'\n');
end
