メインコンテンツ

bohmanwin

ボーマン ウィンドウ

説明

w = bohmanwin(L) では、wL 点のボーマン ウィンドウが返されます。

w = bohmanwin(L,typeName) は、ウィンドウ w を単精度または倍精度で返すオプションを指定します。

すべて折りたたむ

64 点のボーマン ウィンドウを作成します。wvtool を使用して結果を表示します。

L = 64;
bw = bohmanwin(L);
wvtool(bw)

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.

入力引数

すべて折りたたむ

ウィンドウの長さ。正の整数で指定します。

メモ

L を非整数として指定した場合、関数はそれを最も近い整数値に丸めます。

データ型: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

R2024b 以降

出力データ型 (クラス)。次のいずれかとして指定します。

  • "double" — 出力 w を倍精度で返すには、このオプションを使用します。

  • "single" — 出力 w を単精度で返すには、このオプションを使用します。

データ型: char | string

出力引数

すべて折りたたむ

ボーマン ウィンドウ。列ベクトルとして返されます。

アルゴリズム

ボーマン ウィンドウは、2 つの半周期の余弦ローブの畳み込みです。時間領域では、三角ウィンドウと 1 サイクル分の余弦値との積に、1 次導関数が境界で 0 に設定されるように項が追加されます。ボーマン ウィンドウは、1/w4 で減衰します。ボーマン ウィンドウの係数を計算する式を次に示します。

w(x)=(1|x|)cos(π|x|)+1πsin(π|x|),1x1

ここで x は、linspace を使用して値を線形に配置した、長さ L のベクトルです。ボーマン ウィンドウの最初と最後の要素は強制的に等しくゼロとなります。

参照

[1] harris, fredric j. “On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform.” Proceedings of the IEEE®. Vol. 66, January 1978, pp. 51–83.

拡張機能

すべて展開する

C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。

バージョン履歴

R2006a より前に導入

すべて展開する