filt3dB2QBW

版本 1.0.0 (2.3 KB) 作者: Witold Waldman
Compute Q and bandwidth of a bandpass filter given its -3 dB points.
2.0 次下载
更新时间 2022/7/13

查看许可证

When designing an audio bandpass filter, sometimes the -3 dB points f1 and f2 are specified, together with the center frequency f0. These three parameters can be used to compute the Q (quality factor), bandwidth in octaves BWoct, and bandwith BW in frequency units for the bandpass filter in question. The output value ratiof is described below.
Syntax
[Q, BWoct, BW, ratiof] = filt3dB2QBW(f0,f1,f2)
filt3dB2QBW()
The input values of f0, f1, and f2 may be either scalars or a self-consistent set of row or column vectors. If it includes one of the latter, then the output will be the appropriate vector.
Invoking filt3dB2QBW() with no input arguments creates an example table of output results, which can be compared to the results that were published by Bohn (1983).
The mathematical theory that was used by Bohn assumes that f0 is the geometric mean of the two skirt frequencies, f1 and f2, such that f0 = sqrt(f1*f2). However, this is not enforced here in order to allow the function to be used even when dealing with data that may contain measurement errors. An example of such data might arise when reading points from a plotted transfer function response curve.
If the computed value of ratiof = f0/sqrt(f1*f2) is close to unity, then this serves to indicate that the values of f0, f1, and f2 are consistent with the theoretical derivation used here.
Reference
Bohn, Dennis (1983). Bandpass filter design. Studio Sound, January, pages 36-37. https://worldradiohistory.com/Archive-All-Audio/Archive-Studio-Sound/80s/Studio-Sound-1983-01.pdf

引用格式

Witold Waldman (2024). filt3dB2QBW (https://www.mathworks.com/matlabcentral/fileexchange/114965-filt3db2qbw), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2022a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0