Main Content

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

window

ウィンドウ関数ゲートウェイ

構文

window
w = window(fhandle,n)
w = window(fhandle,n,winopt)

説明

windowウィンドウ デザイナー アプリを開きます。

w = window(fhandle,n) では、関数ハンドル fhandle で指定された n 点のウィンドウが、列ベクトル w に返されます。関数ハンドルは、次のようにウィンドウ関数名の前に @ を付けたものです。

@barthannwin
@bartlett
@blackman
@blackmanharris
@bohmanwin
@chebwin
@flattopwin
@gausswin
@hamming
@hann
@kaiser
@nuttallwin
@parzenwin
@rectwin
@taylorwin
@triang
@tukeywin

メモ

chebwinkaiser、および tukeywin の場合は、次の構文を使用してウィンドウ パラメーターを含めなければなりません。

各ウィンドウ関数とそのオプションに関する詳細については、対応するリファレンス ページを参照してください。

w = window(fhandle,n,winopt) では、関数ハンドル fhandle と、対応する winopt 値またはサンプリング記述子で指定されたウィンドウが返されます。chebwinkaiser、および tukeywin の場合は、winopt 値を入力しなければなりません。以下の表に示すその他のウィンドウの場合、winopt の値はオプションです。

ウィンドウ

winopt の説明

winopt の値

blackman

ウィンドウのサンプリング

'periodic' または 'symmetric'

chebwin

メインローブに対するサイドローブの減衰量

数値

flattopwin

ウィンドウのサンプリング

'periodic' または 'symmetric'

gausswin

アルファ値 (標準偏差の逆数)

数値

hamming

ウィンドウのサンプリング

'periodic' または 'symmetric'

hann

ウィンドウのサンプリング

'periodic' または 'symmetric'

kaiser

ベータ値

数値

taylorwin

1. サイドローブ数

2. メインローブ ピークに対する最大サイドローブ レベル (dB)

1. 1 以上の整数

2. 負の値

tukeywin

定数部に対するテーパー部の比

数値

すべて折りたたむ

ブラックマン・ハリス、ハミング、および ガウス ウィンドウを作成し、同じ WVTool 内にプロットします。

N = 65;
w = window(@blackmanharris,N);
w1 = window(@hamming,N); 
w2 = window(@gausswin,N,2.5); 
wvtool(w,w1,w2)

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

バージョン履歴

R2006a より前に導入