


% -*- 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