Accelerating the pace of engineering and science

# 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 $-\frac{\left(N-1\right)}{2}\le n\le \frac{\left(N-1\right)}{2}$:

$w\left(n\right)=\left\{\begin{array}{ll}1-6{\left(\frac{|n|}{N/2}\right)}^{2}+6{\left(\frac{|n|}{N/2}\right)}^{3}\hfill & 0\le |n|\le \left(N-1\right)/4\hfill \\ 2{\left(1-\frac{|n|}{N/2}\right)}^{3}\hfill & \left(N-1\right)/4<|n|\le \left(N-1\right)/2\hfill \end{array}$

## 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

 generate Generate Parzen window info Display information about Parzen window object winwrite Save 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.