Main Content

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

winwrite

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

カイザー ウィンドウの ASCII ファイルへの保存

構文

winwrite(H)
winwrite(H,'filename')

説明

winwrite(H) では、ダイアログが開き、カイザー ウィンドウの値が ASCII ファイルにエクスポートされます。ファイル拡張子 .wf が自動的に付加されます。

winwrite(H,'filename') により、現在のフォルダーにあるカイザー ウィンドウ オブジェクト H の値が列ベクトルとして ASCII ファイル 'filename' に保存されます。ファイル拡張子 .wffilename に自動的に付加されます。

すべて展開する

長さ N = 64 の 2 つのカイザー ウィンドウを生成します。

  • 最初のウィンドウは減衰パラメーターが β = 5 です。

  • 2 番目のウィンドウは β = 15 です。

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

H05 = sigwin.kaiser(128,5);
H15 = sigwin.kaiser(128,15);

wvt = wvtool(H05,H15);
legend(wvt.CurrentAxes,'\beta = 5','\beta = 15')

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 \beta = 5, \beta = 15.

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

H = sigwin.kaiser(16);

win = generate(H)
win = 16×1

    0.9403
    0.9550
    0.9677
    0.9783
    0.9868
    0.9933
    0.9976
    0.9997
    0.9997
    0.9976
      ⋮

wininfo = info(H)
wininfo = 4x13 char array
    'Kaiser Window'
    '-------------'
    'Length  : 16 '
    'Beta    : 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.