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.barthannwin
Package: sigwin

Generates modified Bartlett-Hann window

Syntax

win = generate(H)

Description

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

Examples

expand all

Generate a modified Bartlett-Hann 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.barthannwin(16);

win = generate(H)
win = 

         0
    0.0649
    0.1897
    0.3586
    0.5477
    0.7300
    0.8794
    0.9757
    0.9757
    0.8794

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

Was this topic helpful?