comparison m-toolbox/classes/@ssmport/display.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % DISPLAY display an ssmport object.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: DISPLAY display an ssmport object.
5 %
6 % CALL FOR PARAMETERS:
7 %
8 % obj.display('INFO') % Retrieve method information
9 %
10 % VERSION: $Id: display.m,v 1.4 2011/02/18 16:48:55 ingo Exp $
11 %
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13
14 function varargout = display(varargin)
15
16 % Get unit objects
17 objs = [varargin{:}];
18
19 % get display text
20 txt = utils.helper.objdisp(objs);
21
22 % display the objects
23 if nargout > 0
24 varargout{1} = txt;
25 elseif nargout == 0;
26 for j=1:numel(txt)
27 disp(txt{j});
28 end
29 end
30 end
31