| Signal Processing Toolbox | ![]() |
Syntax
Description
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 |
@hamming |
@bartlett |
@hann |
@blackman |
@kaiser |
@blackmanharris |
@nuttallwin |
@bohmanwin |
@parzenwin |
@chebwin |
@rectwin |
@flattopwin |
@triang |
@gausswin |
@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, returns the window specified by its function handle, winopt)
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 |
blackman |
sampling flag string |
'periodic'or 'symmetric' |
chebwin |
sidelobe attenuation relative to mainlobe |
numeric |
flattopwin |
sampling flag string |
'periodic'or 'symmetric' |
gausswin |
alpha value (reciprocal of standard deviation) |
numeric |
hamming |
sampling flag string |
'periodic'or 'symmetric' |
hann |
sampling flag string |
'periodic'or 'symmetric' |
kaiser |
beta value |
numeric |
tukeywin |
ratio of taper to constant sections |
numeric |
Examples
Create and plot three windows:
N = 65; w = window(@blackmanharris,N); w1 = window(@hamming,N); w2 = window(@gausswin,N,2.5); plot(1:N,[w,w1,w2]); axis([1 N 0 1]); legend('Blackman-Harris','Hamming','Gaussian');
See Also
barthannwin, bartlett, blackman, blackmanharris, bohmanwin, chebwin, flattopwin, gausswin, hamming, hann, kaiser, nuttallwin, parzenwin, rectwin, triang, tukeywin
| vco | wintool | ![]() |