Main Content

sigwin.parzenwin Class

Namespace: sigwin

Construct Parzen window object

Description

Note

The use of sigwin.parzenwin is not recommended. Use parzenwin instead.

sigwin.parzenwin creates a handle to a Parzen window object for use in spectral analysis and FIR filtering by the window method. Object methods enable workspace import and ASCII file export of the window values.

The following equation defines the N-point Parzen window over the interval (N1)2n(N1)2:

w(n)={16(|n|N/2)2+6(|n|N/2)3,0|n|(N1)/42(1|n|N/2)3,(N1)/4<|n|(N1)/2

Construction

H = sigwin.parzenwin returns a Parzen window object H of length 64.

H = sigwin.parzenwin(Length) returns a Parzen window object H of length Length. Length requires a positive integer. Entering a positive noninteger value for Length rounds the length to the nearest integer. Entering a 1 for Length results in a window with a single value of 1.

Properties

Length

Length requires a positive integer. Entering a positive noninteger value for Length rounds the length to the nearest integer. Entering a 1 for Length results in a window with a single value of 1.

Methods

generateGenerate Parzen window
infoDisplay information about Parzen window object
winwriteSave Parzen window in ASCII file

Copy Semantics

Handle. To learn how copy semantics affect your use of the class, see Copying Objects in the MATLAB® Programming Fundamentals documentation.

Examples

collapse all

Generate a Parzen window of length N = 16. Return its values as a column vector. Show information about the window object. Display the window.

H = sigwin.parzenwin(16);

win = generate(H)
win = 16×1

    0.0005
    0.0132
    0.0610
    0.1675
    0.3540
    0.5972
    0.8286
    0.9780
    0.9780
    0.8286
      ⋮

wininfo = info(H)
wininfo = 3x13 char array
    'Parzen Window'
    '-------------'
    'Length  : 16 '

wvtool(H)

References

harris, fredric j. “On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform.” Proceedings of the IEEE®. Vol. 66, January 1978, pp. 51–83.