Main Content

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

generate

クラス: sigwin.hann
名前空間: sigwin

ハン ウィンドウの生成

構文

win = generate(H)

説明

win = generate(H) では、ハン ウィンドウ オブジェクト H の値が倍精度の列ベクトルとして返されます。

すべて展開する

2 つのハン ウィンドウの生成:

  • 最初のウィンドウは N = 64 で、対称です。

  • 2 番目のウィンドウは N = 63 で、周期的です。

2 つのウィンドウを表示します。

Hs = sigwin.hann(64,'symmetric');
Hp = sigwin.hann(63,'periodic')
Hp = 
            Name: 'Hann'
    SamplingFlag: 'periodic'
          Length: 63

wvt = wvtool(Hs,Hp);
legend(wvt.CurrentAxes,'Symmetric','Periodic')

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 2 objects of type line. Axes object 2 with title Frequency domain, xlabel Normalized Frequency (\times\pi rad/sample), ylabel Magnitude (dB) contains 2 objects of type line. These objects represent Symmetric, Periodic.

N = 16 の対称ハン ウィンドウを生成します。ウィンドウの値を列ベクトルとして返します。ウィンドウ オブジェクトに関する情報が表示されます。ウィンドウを表示します。

H = sigwin.hann(16);

win = generate(H)
win = 16×1

         0
    0.0432
    0.1654
    0.3455
    0.5523
    0.7500
    0.9045
    0.9891
    0.9891
    0.9045
      ⋮

wininfo = info(H)
wininfo = 4x26 char array
    'Hann 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.