Home > classes > @specwin > display.m

display

PURPOSE ^

DISPLAY overloads display functionality for specwin objects.

SYNOPSIS ^

function txt = display(ws)

DESCRIPTION ^

 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.5 2007/09/12 14:01:38 ingo Exp $

 HISTORY:     30-01-2007 M Hewitson
                 Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function txt = display(ws)
0002 % DISPLAY overloads display functionality for specwin objects.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: DISPLAY overloads display functionality for specwin objects.
0007 %
0008 % CALL:        txt     = display(specwin)
0009 %
0010 % INPUT:       specwin - spectral window object
0011 %
0012 % OUTPUT:      txt     - cell array with strings to display the spectral window object
0013 %
0014 % VERSION:     $Id: display.m,v 1.5 2007/09/12 14:01:38 ingo Exp $
0015 %
0016 % HISTORY:     30-01-2007 M Hewitson
0017 %                 Creation
0018 %
0019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0020 
0021 txt = {};
0022 
0023 for i=1:length(ws)
0024   w = ws(i);
0025   banner = sprintf('-------- %s ------------', get(w, 'name'));
0026   txt{end+1} = banner;
0027 
0028   txt{end+1} = ' ';
0029   txt{end+1} = sprintf('   alpha: %g', w.alpha);
0030   txt{end+1} = sprintf('    psll: %g', w.psll);
0031   txt{end+1} = sprintf('     rov: %g', w.rov);
0032   txt{end+1} = sprintf('   nenbw: %g', w.nenbw);
0033   txt{end+1} = sprintf('    w3db: %g', w.w3db);
0034   txt{end+1} = sprintf('flatness: %g', w.flatness);
0035   txt{end+1} = sprintf('      ws: %g', w.ws);
0036   txt{end+1} = sprintf('     ws2: %g', w.ws2);
0037   txt{end+1} = sprintf('     win: %d', length(w.win));
0038 
0039   txt{end+1} = ' ';
0040 
0041   banner_end(1:length(banner)) = '-';
0042   txt{end+1} = banner_end;
0043 
0044   txt{end+1} = ' ';
0045   txt{end+1} = ' ';
0046 end
0047 
0048 if nargout == 0
0049   for ii=1:length(txt)
0050     disp(txt{ii});
0051   end
0052 end
0053 
0054 % END

Generated on Thu 01-Nov-2007 09:42:34 by m2html © 2003