Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

generate

Class: sigwin.bartlett
Package: 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. Write the coefficients to an ASCII file in the current directory. Show information about the window object. Display the window.

H = sigwin.bartlett(16);

win = generate(H)
win = 

         0
    0.1333
    0.2667
    0.4000
    0.5333
    0.6667
    0.8000
    0.9333
    0.9333
    0.8000

winwrite(H,'bartlett_16');
wininfo = info(H)
wininfo = 3×15 char array
    'Bartlett Window'
    '---------------'
    'Length  : 16   '
wvtool(H)

See Also

| |

Was this topic helpful?