Home > classes > @specwin > plot.m

plot

PURPOSE ^

PLOT a specwin object.

SYNOPSIS ^

function plot(ws)

DESCRIPTION ^

 PLOT a specwin object.
 
 M Hewitson 06-02-07
 
 $Id: plot.html,v 1.1 2007/06/08 14:15:07 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function plot(ws)
0002 
0003 % PLOT a specwin object.
0004 %
0005 % M Hewitson 06-02-07
0006 %
0007 % $Id: plot.html,v 1.1 2007/06/08 14:15:07 hewitson Exp $
0008 %
0009 
0010 ha   = [];
0011 
0012 for i=1:length(ws)
0013   w = ws(i);
0014   ha = [ha plot(w.win)];
0015   grid on;
0016   xlabel('sample');
0017   ylabel('amplitude');
0018   title(sprintf('Window %s', strrep(w.name, '_', '\_')));
0019   lstr = [...
0020     sprintf('alpha = %g\n', w.alpha)...
0021     sprintf('psll = %g\n', w.psll)...
0022     sprintf('rov = %g\n', w.rov)...
0023     sprintf('nenbw = %g\n', w.nenbw)...
0024     sprintf('w3db = %g\n', w.w3db)...
0025     sprintf('flatness = %g\n', w.flatness)...
0026     ];
0027   legend(lstr);
0028 end
0029 
0030 if nargout > 0
0031   varargout{1} = ha;
0032 end
0033 
0034 % END

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003