www.gusucode.com > signal 工具箱matlab源码程序 > signal/flattopwin.m

    function w = flattopwin(varargin)
%FLATTOPWIN Flat Top window.
%   FLATTOPWIN(N) returns the N-point symmetric Flat Top window in a column 
%   vector.
%   FLATTOPWIN(N,SFLAG) generates the N-point Flat Top window using SFLAG
%   window sampling. SFLAG may be either 'symmetric' or 'periodic'. By 
%   default, a symmetric window is returned. 
%
%   EXAMPLE:
%      w = flattopwin(64); 
%      wvtool(w);
%
%   See also BARTHANNWIN, BARTLETT, BLACKMANHARRIS, BOHMANWIN,
%            NUTTALLWIN, PARZENWIN, RECTWIN, TRIANG, WINDOW.

%   Reference:
%     [1] Digital Signal Processing for Measurement Systems, D'Antona G. and
%     Ferrero A., Springer Media, Inc. 2006
%     [2] Bruel & Kjaer, Windows to FFT Analysis (Part I), Technical
%     Review, No. 3, 1987

%   Copyright 1988-2013 The MathWorks, Inc.

narginchk(1,2);

[w,msg,msgobj] = gencoswin('flattopwin',varargin{:});
if ~isempty(msg)
  error(msgobj);
end

% [EOF]