Be the first to rate this file! 63 downloads (last 30 days) File Size: 1.94 KB File ID: #24617

Digital Resistor-Capacitor (RC) Filter

by Jeff Tackett

 

01 Jul 2009

Code covered by BSD License  

Generates digital IIR coefficients from only Resistor and Capacitor values

Download Now | Watch this File

File Information
Description

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);

MATLAB release MATLAB 7.3 (R2006b)
Zip File Content  
Other Files license.txt,
rc_filter.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
signal processing Jeff Tackett 02 Jul 2009 10:19:08
rc filter Jeff Tackett 02 Jul 2009 10:19:08
iir design Jeff Tackett 02 Jul 2009 10:19:08
iir simulation Jeff Tackett 02 Jul 2009 10:19:08
iir Jeff Tackett 02 Jul 2009 10:19:08
resistor Jeff Tackett 02 Jul 2009 10:19:09
capacitor Jeff Tackett 02 Jul 2009 10:19:09
analog filter Jeff Tackett 02 Jul 2009 10:19:09
automotive Jeff Tackett 02 Jul 2009 10:19:09
electronics Jeff Tackett 02 Jul 2009 10:19:09
analogtodigital Jeff Tackett 02 Jul 2009 10:19:09
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com