Adjustable Window with 12 dB/Octave Sidelobes

User-Commanded Mainlobe Width, 12 dB/Octave Roll-Off Instead of 6 dB or 0 dB

You are now following this Submission

Well-known adjustable windows have sidelobe roll-off of either 6 dB/octave (Kaiser, Taylor) or 0 dB/octave (Chebyshev). Win12 provides an adjustable 12 dB/octave window with well-behaved sidelobes.

The adjustment parameter F0 (1 <= F0 <= 3) directly specifies the first null frequency in cycles per window length. The larger F0, the wider the mainlobe and the lower the sidelobes. The thumbnail picture shows win12 with F0 = 2.0, the same first-null frequency as the Hann and Triangle windows. If omitted, F0 is set to 1.5.

Win12 produces unusual-looking windows when F0 < 1.25. These are not erroneous, but this is a region where 6 dB windows are more in their element.

Finally, note that 12 dB windows make good convolutional smoothing filters, compared to a uniform moving average, for example. There’s much less high-frequency content in the result. Win12 can be used as a smoothing filter design function, with F0 controlling the frequency response.

More info on common windows is found in post #46731 “Replacement Window Functions”.

Cite As

Jim (2026). Adjustable Window with 12 dB/Octave Sidelobes (https://www.mathworks.com/matlabcentral/fileexchange/46975-adjustable-window-with-12-db-octave-sidelobes), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.5.0.0

Fixed title.

1.4.0.0

Fixed typo.

1.3.0.0

Revised description and function header.

1.2.0.0

Revised description.

1.1.0.0

Revised picture, description, and tags.

1.0.0.0