| Signal Processing Toolbox™ | ![]() |
window
w = window(fhandle,n)
w = window(fhandle,n,winopt)
window opens the Window Design and Analysis Tool (wintool).
w = window(fhandle,n) returns the n-point window, specified by its function handle, fhandle, in column vector w. Function handles are window function names preceded by an @.
| @barthannwin |
| @bartlett |
| @blackman |
| @blackmanharris |
| @bohmanwin |
| @chebwin |
| @flattopwin |
| @gausswin |
| @hamming |
| @hann |
| @kaiser |
| @nuttallwin |
| @parzenwin |
| @rectwin |
| @taylorwin |
| @triang |
| @tukeywin |
Note For chebwin, kaiser, and tukeywin, you must use include a window parameter using the syntax below. For more information on each window function and its option(s), refer to its reference page. |
w = window(fhandle,n,winopt) returns the window specified by its function handle, fhandle, and its winopt value or sampling flag string. For chebwin, kaiser, and tukeywin, you must enter a winopt value. For the other windows listed below, winopt values are optional.
Window | winopt Description | winopt Value |
|---|---|---|
sampling flag string | 'periodic'or 'symmetric' | |
sidelobe attenuation relative to mainlobe | numeric | |
sampling flag string | 'periodic'or 'symmetric' | |
alpha value (reciprocal of standard deviation) | numeric | |
sampling flag string | 'periodic'or 'symmetric' | |
sampling flag string | 'periodic'or 'symmetric' | |
beta value | numeric | |
1. number of sidelobes | 1. integer greater than or equal to 1 | |
ratio of taper to constant sections | numeric |
Create Blackman Harris, Hamming, and Gaussian windows and plot them in the same WVTool.
N = 65; w = window(@blackmanharris,N); w1 = window(@hamming,N); w2 = window(@gausswin,N,2.5); wvtool(w,w1,w2)

barthannwin, bartlett, blackman, blackmanharris, bohmanwin, chebwin, flattopwin, gausswin, hamming, hann, kaiser, nuttallwin, parzenwin, rectwin, triang, taylorwin, tukeywin
![]() | vco | window (filter design method) | ![]() |

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