Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

kaiser

Kaiser 窗

说明

示例

w = kaiser(L,beta) 返回形状因子为 beta 且长度为 L 个点的 Kaiser 窗。

示例

全部折叠

创建一个长度为 200 个点且 beta 为 2.5 的 Kaiser 窗。使用 wvtool 显示结果。

w = kaiser(200,2.5);
wvtool(w)

{"String":"Figure Window Visualization Tool contains 2 axes objects and other objects of type uimenu, uitoolbar, uipanel. Axes object 1 with title Time domain contains an object of type line. Axes object 2 with title Frequency domain contains an object of type line.","Tex":["Time domain","Frequency domain"],"LaTex":[]}

输入参数

全部折叠

窗长度,指定为正整数。

数据类型: single | double

形状因子,指定为正实数标量。参数 beta 会影响窗的傅里叶变换的旁瓣衰减。

数据类型: single | double

输出参数

全部折叠

Kaiser 窗,以列向量形式返回。

算法

Kaiser 窗的系数由以下方程计算:

w(n)=I0(β1(nN/2N/2)2)I0(β),0nN,

其中,I0 是第一类零阶修正 Bessel 函数。长度 L = N + 1kaiser(L,beta) 等效于

besseli(0,beta*sqrt(1-(((0:L-1)-(L-1)/2)/((L-1)/2)).^2))/besseli(0,beta)

要获得旁瓣衰减为 α dB 且表示 FIR 滤波器的 Kaiser 窗,请使用以下 β。

β={0.1102(α8.7),α>500.5842(α21)0.4+0.07886(α21),50α210,α<21

增大 β 会加宽主瓣,并减小旁瓣幅值(即增加衰减)。

参考

[1] Digital Signal Processing Committee of the IEEE Acoustics, Speech, and Signal Processing Society, eds. Selected Papers in Digital Signal Processing. Vol. II. New York: IEEE Press, 1976.

[2] Kaiser, James F. "Nonrecursive Digital Filter Design Using the I0-Sinh Window Function." Proceedings of the 1974 IEEE® International Symposium on Circuits and Systems. April, 1974, pp. 20–23.

[3] 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 之前推出