diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/@specwin/display.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,33 @@
+% DISPLAY overloads display functionality for specwin objects.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% DESCRIPTION: DISPLAY overloads display functionality for specwin objects.
+%
+% CALL:        txt     = display(specwin)
+%
+% INPUT:       specwin - spectral window object
+%
+% OUTPUT:      txt     - cell array with strings to display the spectral window object
+%
+% VERSION:     $Id: display.m,v 1.15 2011/05/17 15:06:26 mauro Exp $
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+function varargout = display(varargin)
+
+  % Get specwin objects
+  objs = [varargin{:}];
+
+  % get display text
+  txt = utils.helper.objdisp(objs);
+
+  if nargout == 0
+    for ii = 1:length(txt)
+      disp(txt{ii});
+    end
+  else
+    varargout{1} = txt;
+  end
+
+end
+