hann

Apply a hann (hanning) window

Syntax

y = hann ( x )
y = x.hann (  )

Inputs

ArgumentTypeDescriptionUnit
xaudio or vectorSignal to apply the windowing ton/a

Outputs / Return Value

Examples

hann(ones(128)) or ones(128).hann: 128-pt hann window
hann(dc(100)) or dc(100).hann: 100-ms hann window
hann(tone(500,100)) or tone(500,100).hann: hann window applied to a 500-Hz, 100-ms tone

See Also

Review Status