Home > classes > @specwin > plot.m

plot

PURPOSE ^

PLOT plots a specwin object.

SYNOPSIS ^

function plot(ws)

DESCRIPTION ^

 PLOT plots a specwin object.

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

 DESCRIPTION: PLOT plots a specwin object.

 CALL:        plot(specwin)

 VERSION:     $Id: plot.m,v 1.4 2007/07/18 13:58:45 ingo Exp $

 HISTORY:     06-02-2007 M Hewitson
                 Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003