comparison m-toolbox/classes/@minfo/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 minfo object.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: DISPLAY display an minfo object.
5 %
6 % VERSION: $Id: display.m,v 1.7 2011/02/18 16:48:53 ingo Exp $
7 %
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9
10 function varargout = display(varargin)
11
12 % Get minfo objects
13 objs = utils.helper.collect_objects(varargin(:), 'minfo');
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 j=1:numel(txt)
23 disp(txt{j});
24 end
25 end
26 end
27