主要内容

generate

Class: sigwin.flattopwin
Namespace: sigwin

Generates flat top window

Syntax

win = generate(H)

Description

win = generate(H) returns the values of the flat top window object as a double-precision column vector.

Examples

expand all

Generate a flat top window of length N = 16. Return its values as a column vector. Show information about the window object. Display the window.

H = sigwin.flattopwin(16);

win = generate(H)
win = 16×1

   -0.0004
   -0.0061
   -0.0314
   -0.0677
   -0.0316
    0.1982
    0.6069
    0.9487
    0.9487
    0.6069
    0.1982
   -0.0316
   -0.0677
   -0.0314
   -0.0061
      ⋮

wininfo = info(H)
wininfo = 4×26 char array
    'Flat Top Window           '
    '---------------           '
    'Length         : 16       '
    'Sampling Flag  : symmetric'

wvtool(H)

Figure Window Visualization Tool contains 2 axes objects and other objects of type uimenu, uitoolbar, uipanel. Axes object 1 with title Time domain, xlabel Samples, ylabel Amplitude contains an object of type line. Axes object 2 with title Frequency domain, xlabel Normalized Frequency (\times\pi rad/sample), ylabel Magnitude (dB) contains an object of type line.