view m-toolbox/classes/@time/display.m @ 5:5a49956df427 database-connection-manager

LTPDAPreferences panel for new LTPDADatabaseConnectionManager
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

% DISPLAY display functionality for time objects.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DESCRIPTION: Display functionality for time objects.
%
% VERSION: $Id: display.m,v 1.25 2010/08/29 20:52:38 nicolodi Exp $
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function out = display(obj)

  out = {};
  for ii = 1:numel(obj)
    out{ii} = format(obj(ii));
  end
  out = reshape(out, size(obj));

  if nargout == 0
    if isequal(get(0,'FormatSpacing'),'compact')
      disp([inputname(1) ' =']);
      disp(out);
    else
      disp(' ');
      disp([inputname(1) ' =']);
      disp(' ');
      disp(out);
    end
  end

end