メインコンテンツ

generate

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

テューキー ウィンドウの生成

構文

win = generate(H)

説明

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

すべて展開する

長さ N = 64 の 2 つのテューキー ウィンドウを生成します。

  • 最初のウィンドウは α = 1/4 です。α は定数部の長さに対するウィンドウのテーパー部の長さの比です。

  • 2 番目のウィンドウは α = 3/4 です。

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

H14 = sigwin.tukeywin(64,1/4);
H34 = sigwin.tukeywin(64,3/4);

wvt = wvtool(H14,H34);
legend(wvt.CurrentAxes,'\alpha = 1/4','\alpha = 3/4')

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 \alpha = 1/4, \alpha = 3/4.

長さ N = 16 で、既定で α = 1/2 であるテューキー ウィンドウを生成します。その値を列ベクトルとして返します。ウィンドウ オブジェクトに関する情報が表示されます。ウィンドウを表示します。

H = sigwin.tukeywin(16);

win = generate(H)
win = 16×1

         0
    0.1654
    0.5523
    0.9045
    1.0000
    1.0000
    1.0000
    1.0000
    1.0000
    1.0000
    1.0000
    1.0000
    0.9045
    0.5523
    0.1654
      ⋮

wininfo = info(H)
wininfo = 4×13 char array
    'Tukey Window '
    '------------ '
    'Length  : 16 '
    'Alpha   : 0.5'

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.