Home > freetb4matlab > signal > welchwin.m

welchwin

PURPOSE ^

% Returns a row vector containing a Welch window, given by

SYNOPSIS ^

function [w] = welchwin(L,c)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{w}] =} welchwin(@var{L},@var{c})
% Returns a row vector containing a Welch window, given by 
% @var{w}(n)=1-(n/N-1)^2,   n=[0,1, ... @var{L}-1].
% Argument @var{L} is the length of the window.
% Optional argument @var{c} specifies a 'symmetric' window (the default),
% or a 'periodic' window.
%
% A symmetric window has zero at each end and maximum in the middle;
% @var{L} must be an integer larger than 2.
% @code{if c=='symmetric', N=(L-1)/2}
%
% A periodic window wraps around the cyclic interval [0,1, ... @var{L}-1],
% and is intended for use with the DFT  (functions fft,
% periodogram etc).
% @var{L} must be an integer larger than 1.
% @code{if c=='periodic', N=@var{L}/2}.
%
% @seealso{blackman, kaiser}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003