Main Content

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

rectwin

説明

w = rectwin(L) では、長さ L の箱型ウィンドウが返されます。

すべて折りたたむ

64 点箱型ウィンドウを作成します。wvtool を使用して結果を表示します。

L = 64;
wvtool(rectwin(L))

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.

入力引数

すべて折りたたむ

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

データ型: single | double

出力引数

すべて折りたたむ

箱型ウィンドウ。列ベクトルとして返されます。

アルゴリズム

入力 L をもつ関数 rectwin の出力は、関数 ones を使用して作成することもできます。

w = ones(L,1);

参照

[1] Oppenheim, Alan V., Ronald W. Schafer, and John R. Buck. Discrete-Time Signal Processing. Upper Saddle River, NJ: Prentice Hall, 1999.

拡張機能

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

バージョン履歴

R2006a より前に導入