view m-toolbox/classes/tests/@ltpda_utp/display.m @ 37:a4b7ceae0403
database-connection-manager
Show backtrace on unit test errors
author |
Daniele Nicolodi <nicolodi@science.unitn.it> |
date |
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05) |
parents |
f0afece42f48 |
children |
|
line source
% DISPLAY overloads display functionality for ltpda_utp objects.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DESCRIPTION: DISPLAY overloads display functionality for ltpda_utp objects.
%
% CALL: txt = display(obj)
%
% INPUT: obj - ltpda_utp object
%
% OUTPUT: txt - cell array with strings to display the ltpda_utp object
%
% VERSION: $Id: display.m,v 1.1 2010/10/07 14:52:24 hewitson Exp $
%
% HISTORY: 30-01-2007 M Hewitson
% Creation
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function varargout = display(varargin)
% Get specwin objects
objs = utils.helper.collect_objects(varargin(:), 'ltpda_utp');
% get display text
txt = utils.helper.objdisp(objs);
if nargout == 0
for ii=1:length(txt)
disp(txt{ii});
end
else
varargout{1} = txt;
end
end