| DSP Blockset | Search  Help Desk |
Window Specifications
The type of window to generate and/or apply is specified by the Window type parameter. The length of the sampled window, Nw, is specified by the Window length parameter, and must be the same size as the input, if there is one. The Sampling parameter determines whether the generalized-cosine windows (Blackman, Hamming, and Hanning) are computed in a periodic or a symmetric manner. For example, if Sampling is set to Symmetric, a Hamming window of Window length Nw is computed asw = hamming(Nw) % symmetric (aperiodic) windowIf Sampling is set to Periodic, the same window is computed as
w = hamming(Nw+1) w = w(1:Nw) % periodic (asymmetric) windowSee the reference page for the Window Function block and the Signal Processing Toolbox User's Guide for details on all of the blockset's windowing capabilities.