Home > classes > @specwin > win_Bartlett.m

win_Bartlett

PURPOSE ^

WIN_BARTLETT return Bartlett window sample for input z.

SYNOPSIS ^

function w = win_Bartlett(w, z)

DESCRIPTION ^

 WIN_BARTLETT return Bartlett window sample for input z.

 M Hewitson 18-05-07

 $Id: win_Bartlett.m,v 1.1 2008/06/20 10:46:55 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function w = win_Bartlett(w, z)
0002 
0003 % WIN_BARTLETT return Bartlett window sample for input z.
0004 %
0005 % M Hewitson 18-05-07
0006 %
0007 % $Id: win_Bartlett.m,v 1.1 2008/06/20 10:46:55 hewitson Exp $
0008 %
0009 
0010 
0011 v = z * 2;
0012 idx = find(v>1);
0013 v(idx) = 2-v(idx);
0014 
0015 
0016 % Make window struct
0017 w.type     = 'Bartlett';
0018 w.alpha    = 0;
0019 w.psll     = 26.5;
0020 w.rov      = 50;
0021 w.nenbw    = 1.3333;
0022 w.w3db     = 1.2736;
0023 w.flatness = -1.8242;
0024 w.ws       = sum(v);
0025 w.ws2      = sum(v.*v);
0026 w.win      = v;
0027 
0028 
0029 
0030 % END

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003