sigwin.parzenwin class

Package: sigwin

Construct Parzen window object

Description

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)30|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

Default length N=64 Parzen window:

H=sigwin.parzenwin;
wvtool(H); 

Generate length N=128 Parzen window object, return values, and write ASCII file:

H=sigwin.parzenwin(128);
% Return window with generate
win=generate(H);
% Write ascii file in current directory
% with window values
winwrite(H,'parzenwin_128')

References

Harris, F.J. "On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform." Proceedings of the IEEE®, Vol. 66. 1978, pp. 51–83.

Was this topic helpful?