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

Generates Blackman–Harris window

Syntax

win = generate(H)

Description

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

Examples

expand all

Generate a Blackman-Harris 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.blackmanharris(16);

win = generate(H)
win = 

    0.0001
    0.0036
    0.0267
    0.1030
    0.2680
    0.5206
    0.7938
    0.9749
    0.9749
    0.7938

winwrite(H,'blackmanharris_16');
wininfo = info(H)
wininfo = 4×26 char array
    'Blackman-Harris Window    '
    '----------------------    '
    'Length         : 16       '
    'Sampling Flag  : symmetric'
wvtool(H)

Was this topic helpful?