Mercurial > hg > ltpda
comparison m-toolbox/classes/tests/@ltpda_utp/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 overloads display functionality for ltpda_utp objects. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: DISPLAY overloads display functionality for ltpda_utp objects. | |
5 % | |
6 % CALL: txt = display(obj) | |
7 % | |
8 % INPUT: obj - ltpda_utp object | |
9 % | |
10 % OUTPUT: txt - cell array with strings to display the ltpda_utp object | |
11 % | |
12 % VERSION: $Id: display.m,v 1.1 2010/10/07 14:52:24 hewitson Exp $ | |
13 % | |
14 % HISTORY: 30-01-2007 M Hewitson | |
15 % Creation | |
16 % | |
17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
18 | |
19 function varargout = display(varargin) | |
20 | |
21 % Get specwin objects | |
22 objs = utils.helper.collect_objects(varargin(:), 'ltpda_utp'); | |
23 | |
24 % get display text | |
25 txt = utils.helper.objdisp(objs); | |
26 | |
27 if nargout == 0 | |
28 for ii=1:length(txt) | |
29 disp(txt{ii}); | |
30 end | |
31 else | |
32 varargout{1} = txt; | |
33 end | |
34 | |
35 end | |
36 |