Digital Resistor-Capacitor (RC) Filter

版本 1.0.0.0 (1.9 KB) 作者: Jeff Tackett
Generates digital IIR coefficients from only Resistor and Capacitor values
3.1K 次下载
更新时间 2009/7/1

查看许可证

Returns equivalent IIR coefficients for an analog RC filter

Usage: [B,A] = RC_FILTER(r, c, fs, type);

R is the resistance value (in ohms)
C is the capacitance value (in farrads)
FS is the digital sample rate (in Hz)
type is a character string defining filter type
Choices are: 'high' or 'low'

This function uses a pre-calculated equation for both of these circuits that only requires the resistance and capacitance value to get a true digital filter equivalent to a basic analog filter.

The math behind these equations is based off the basic bilinear transform technique that can be found in many DSP textbooks. The reference paper for this function was "Conversion of Analog to Digital Transfer Functions" by C. Sidney Burrus, page 6.

This is also the equivalent of a 1st order butterworth with a cuttoff frequency of Fc = 1/(2*pi*R*C);

引用格式

Jeff Tackett (2024). Digital Resistor-Capacitor (RC) Filter (https://www.mathworks.com/matlabcentral/fileexchange/24617-digital-resistor-capacitor-rc-filter), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Analog Filters 的更多信息

Community Treasure Hunt

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

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