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