Main Content

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

winwrite

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

ナットールの定義による 4 項ブラックマン・ハリス ウィンドウ オブジェクトの値を ASCII ファイルに保存

構文

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

説明

winwrite(H) では、ダイアログが開き、ナットールの定義による 4 項ブラックマン・ハリス ウィンドウ オブジェクト H の値が ASCII ファイルにエクスポートされます。ファイル拡張子 .wf が自動的に付加されます。

winwrite(H,'filename') により、現在のフォルダーにある、ナットールの定義による 4 項ブラックマン・ハリス ウィンドウ オブジェクト 'filename' の値は列ベクトルとして ASCII ファイル H に保存されます。ファイル拡張子 .wffilename に自動的に付加されます。

すべて展開する

2 つのナットールの定義による 4 項ブラックマン・ハリス ウィンドウを生成します。

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

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

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

Hs = sigwin.nuttallwin(64);
Hp = sigwin.nuttallwin(63);
Hp.SamplingFlag = 'periodic';

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 の、ナットールの定義による対称 4 項ブラックマン・ハリス ウィンドウを生成します。ウィンドウの値を列ベクトルとして返します。ウィンドウ オブジェクトに関する情報が表示されます。ウィンドウを表示します。

H = sigwin.nuttallwin(16);

win = generate(H)
win = 16×1

    0.0004
    0.0048
    0.0306
    0.1105
    0.2778
    0.5292
    0.7983
    0.9755
    0.9755
    0.7983
      ⋮

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