WindowFcn

This block applies a window to an input signal.

    WindowFcn

Library

MatrixOperations

Description

This block generates a window function of selected type and applies to the input signal to be processed. The length of the window is the same as input signal. Supported window types are "Rectangular", "Triangular", "Chebyshev", "Welch", "Hamming", "Hann", "Blackman", "Parzen", "Kaiser-Bessel".

Parameters

WindowFcn_0

NameLabelDescriptionData TypeValid Values

Filter

Select a window type:

Structure

Filter/Rectangular

Rectangular

Known also as the Dirichlet window, it is the simplest window function.
w(n)=1
for n=0:N-1

Number

0
1

Filter/Triangular

Triangular

Triangular windows is defined as follows:
If the symmetric option is chosen:
w(n)=1 - \left|\frac{n-\frac{N-1}{2}}{\frac{N+1}{2}}\right|,
If the periodic option is chosen:
w(n)=1 - \left|\frac{n-\frac{N}{2}}{\frac{N+2}{2}}\right|,
for n=0:N-1

Number

0
1

Filter/Chebyshev

Chebyshev

See the Chebyshev documentation in the OML Guide.

Number

0
1

Filter/Welch

Welch

Number

0
1

Filter/Hamming

Hamming

Number

0
1

Filter/Hann

Hann

Number

0
1

Filter/Blackman

Blackman

Number

0
1

Filter/Parzen

Parzen

Number

0
1

Filter/KaiserBessel

KaiserBessel

Number

0
1

Chebyshev_p

Chebyshev filter parameters

Structure

Chebyshev_p/sidelobe

sidelobe(=-20*Alpha)

cell of matrices of size 1x1

kaiserbessel_p

Kaiser-Bessel filter parameter

Structure

kaiserbessel_p/alpha

Alpha>=0

cell of matrices of size 1x1

wtype

Filter type

String

'symmetric'
'periodic'

externalActivation

External activation

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no