comparison m-toolbox/classes/@specwin/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 specwin objects.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: DISPLAY overloads display functionality for specwin objects.
5 %
6 % CALL: txt = display(specwin)
7 %
8 % INPUT: specwin - spectral window object
9 %
10 % OUTPUT: txt - cell array with strings to display the spectral window object
11 %
12 % VERSION: $Id: display.m,v 1.15 2011/05/17 15:06:26 mauro Exp $
13 %
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15
16 function varargout = display(varargin)
17
18 % Get specwin objects
19 objs = [varargin{:}];
20
21 % get display text
22 txt = utils.helper.objdisp(objs);
23
24 if nargout == 0
25 for ii = 1:length(txt)
26 disp(txt{ii});
27 end
28 else
29 varargout{1} = txt;
30 end
31
32 end
33