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
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 10K views
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! :)