Simulating RC Low Pass Filter Using MATLAB: Symbolic to Numeric Conversion

  • Context: MATLAB 
  • Thread starter Thread starter sinusance
  • Start date Start date
  • Tags Tags
    Matlab Numeric
Click For Summary
SUMMARY

This discussion focuses on simulating an RC low pass filter using MATLAB, specifically addressing the conversion of a symbolic transfer function to a numeric format. The user seeks to apply the Fast Fourier Transform (FFT) to their data, multiply it by the transfer function, and then use the Inverse Fast Fourier Transform (IFFT) to obtain the filtered output. The transfer function provided is 100/(s+100), and the MATLAB Controls Toolbox is recommended for generating Bode plots to analyze the system's frequency response.

PREREQUISITES
  • Understanding of RC low pass filter theory
  • Familiarity with MATLAB and its syntax
  • Knowledge of Fast Fourier Transform (FFT) and Inverse Fast Fourier Transform (IFFT)
  • Experience with symbolic mathematics in MATLAB
NEXT STEPS
  • Learn how to convert symbolic transfer functions to numeric representations in MATLAB
  • Explore the MATLAB Controls Toolbox for generating Bode plots
  • Study the application of FFT and IFFT in signal processing
  • Investigate the implications of Linear Time Invariant (LTI) systems in filter design
USEFUL FOR

Electrical engineers, signal processing specialists, and MATLAB users interested in simulating and analyzing filter circuits.

sinusance
Messages
4
Reaction score
0
hey,

I'm trying to use MATLAB to simulate a simple RC low pass filter. I have an array of data that represents the signal I want to filter, and I have the s-domain representation of the filter circuit. I'm pretty new to this type of analysis, but I'm pretty sure I should be taking the fft of my data and multiplying it by the s-domain representation (transfer function) of the circuit, and then take the ifft to get the output.
I guess my problem is I have a symbolic transfer function that I'm trying to multiply with a numeric array. Any Ideas on how I can get a numeric representation of my symbolic transfer function?

Thanks in advance.

(this is my transfer function if that helps)
transferFunc = 100/(s+100)
 
Physics news on Phys.org
You probably want something called a Bode plot (magnitude and phase angle of a Linear Time Invariant system):
http://en.wikipedia.org/wiki/Bode_plot

If you have the MATLAB Controls Toolbox, you can generate a Bode plot of a system given its transfer function:
http://www.mathworks.com/access/helpdesk/help/toolbox/control/ref/bode.html

An example:
http://www.engin.umich.edu/group/ctm/freq/freq.html
 
Last edited by a moderator:
Thanks a million MATLABdude,
That tutorial held all the answers and more! :)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
10K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K