Mercurial > hg > ltpda
comparison m-toolbox/classes/@provenance/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 overload terminal display for provenance objects. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: DISPLAY overload terminal display for provenance objects. | |
5 % | |
6 % VERSION: $Id: display.m,v 1.15 2011/02/18 16:48:54 ingo Exp $ | |
7 % | |
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
9 | |
10 function varargout = display(varargin) | |
11 | |
12 % Get provenance 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 j=1:numel(txt) | |
23 disp(txt{j}); | |
24 end | |
25 end | |
26 | |
27 end | |
28 |