| Contents | Index |
w = flattopwin(L)
w = flattopwin(L,sflag)
Flat Top windows have very low passband ripple (< 0.01 dB) and are used primarily for calibration purposes. Their bandwidth is approximately 2.5 times wider than a Hann window.
w = flattopwin(L) returns the L-point symmetric flat top window in column vector w.
w = flattopwin(L,sflag) returns the L-point symmetric flat top window using sflag window sampling, where sflag is either 'symmetric' or 'periodic'. The 'periodic' flag is useful for DFT/FFT purposes, such as in spectral analysis. The DFT/FFT contains an implicit periodic extension and the periodic flag enables a signal windowed with a periodic window to have perfect periodic extension. When 'periodic' is specified, flattopwin computes a length L+1 window and returns the first L points. When using windows for filter design, the 'symmetric' flag should be used.
Flat top windows are summations of cosines. The coefficients of a flat top window are computed from the following equation
![]()
where
and
elsewhere and the window length
is L = N +1. The coefficient values are
| Coefficient | Value |
|---|---|
| a0 | 0.21557895 |
| a1 | 0.41663158 |
| a2 | 0.277263158 |
| a3 | 0.083578947 |
| a4 | 0.006947368 |
Create a 64-point, symmetric Flat Top window and view the window using WVTool:
w = flattopwin(64); wvtool(w);

[1] D'Antona, Gabriele. and A. Ferrero, Digital Signal Processing for Measurement Systems, New York: Springer Media, Inc., 2006, pp. 70–72.
[2] Gade, Svend and H. Herlufsen, "Use of Weighting Functions in DFT/FFT Analysis (Part I)," Brüel & Kjær, Windows to FFT Analysis (Part I) Technical Review, No. 3, 1987, pp. 19-21.

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |