<< firtype FOSSEE Signal Processing Toolbox fracshift >>

FOSSEE Signal Processing Toolbox >> FOSSEE Signal Processing Toolbox > flattopwin

flattopwin

This function returns the filter coefficients of a Flat Top window.

Calling Sequence

w = flattopwin (m)
w = flattopwin (m, opt)

Parameters

m:

positive integer value

opt:

string value, takes in "periodic" or "symmetric"

w:

output variable, vector of real numbers

Description

This is an Octave function. This function returns the filter coefficients of a Flat Top window of length m supplied as input, to the output vector w. The second parameter can take the values "periodic" or "symmetric", depending on which the corresponding form of window is returned. The default is symmetric. This window has low pass-band ripple but a high bandwidth.

Examples

flattopwin(8,"periodic")
ans  =
0.0009051
- 0.0264124
- 0.0555580
0.4435496
1.
0.4435496
- 0.0555580
- 0.0264124

Report an issue
<< firtype FOSSEE Signal Processing Toolbox fracshift >>