Hauptinhalt

generate

Class: sigwin.bartlett
Namespace: sigwin

Generates Bartlett window

Syntax

win = generate(H)

Description

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

Examples

expand all

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

H = sigwin.bartlett(16);

win = generate(H)
win = 16×1

         0
    0.1333
    0.2667
    0.4000
    0.5333
    0.6667
    0.8000
    0.9333
    0.9333
    0.8000
    0.6667
    0.5333
    0.4000
    0.2667
    0.1333
      ⋮

wininfo = info(H)
wininfo = 3×15 char array
    'Bartlett Window'
    '---------------'
    'Length  : 16   '

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.

See Also

| |