Bandpass Filter Design
This transfer function defines the response of a Bandpass filter.
G≔sR Cs2+sR C+1L C:
The product L C controls the bandpass frequency while R C controls how narrow the passing band is. To build a bandpass filter tuned to the frequency 1 rad/s, set L=C=1 and use R to tune the filter band.
First define a transfer function object.
sysTF≔Transfer Functioncontinuous1 output(s); 1 input(s)inputvariable=u1⁡soutputvariable=y1⁡s
Now generate a Magnitude plot
As expected, the RLC filter has maximum gain at the frequency 1 rad/s. However, the attenuation is only -10dB half a decade away from this frequency.
To get a narrower passing band, try increasing values of R.
The resistor value R=20 gives a filter narrowly tuned around the target frequency of 1 rad/s.
We can confirm the attenuation properties of the circuit (R=20) by simulating how this filter transforms sine waves with frequency 0.9, 1, and 1.1 rad/s.
Create two response plots for the filter at R=20 with two inputs: sin(0.9 t) and sin(t).
Download Help Document