WindowFcn

This block applies a window to an input signal.

    WindowFcn

Library

Activate/MatrixOperations

Description

This block generates a window function, which is based on the window type specified, and applies it to the input signal. The length of the window is the same as the 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:

Windowing function. Default: Chebyshev.

Structure

Filter/Rectangular

Rectangular

Dirichlet window, which 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:

WindowFcn_equation1

If the periodic option is chosen:

WindowFcn_equation2

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

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

Filter type. default: symmetric.

String

'symmetric'
'periodic'

externalActivation

External activation

Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected.

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