<< hamming FOSSEE Signal Processing Toolbox hanning >>

FOSSEE Signal Processing Toolbox >> FOSSEE Signal Processing Toolbox > hann

hann

This function returns the filter coefficients of a Hanning window.

Calling Sequence

w = hann(m)
w = hann(m, "symmteric")
w = hann(m, "periodic")

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 Hanning 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.

Examples

hann(6,"symmetric")
ans  =
0.
0.3454915
0.9045085
0.9045085
0.3454915
0.

Report an issue
<< hamming FOSSEE Signal Processing Toolbox hanning >>