comparison m-toolbox/classes/@unit/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 unit object.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: DISPLAY display an unit object.
5 %
6 % VERSION: $Id: display.m,v 1.5 2011/04/05 10:47:10 mauro Exp $
7 %
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9
10 function varargout = display(varargin)
11
12 % Get unit objects
13 objs = [varargin{:}];
14
15 % get display text
16 txt = utils.helper.objdisp(objs);
17
18 % display the objects
19 if nargout > 0
20 varargout{1} = txt;
21 elseif nargout == 0;
22 for jj = 1:numel(txt)
23 disp(txt{jj});
24 end
25 end
26 end
27