- #1
roam
- 1,271
- 12
Homework Statement
I'm trying to make a theoretical Bode Amplitude plot of the following circuit in Matlab:
The transfer functions is given by
##T=\frac{V_{out}}{V_{in}}=\frac{R_2}{R_2+z_p}##
##z_p=R_p|| j \omega L || \frac{1}{j \omega C} = \frac{R_p}{1+ j R_p (\omega C - \frac{1}{\omega L})}##
Where ##R_p## is the parallel loss resistance of the inductor (~19.49 Ω). R2=300, C=22.09 nF, L=10.08 mH.
I know that the graph is supposed to look like a notch (trap) filter, here is an experimental graph of this same filter:
The Attempt at a Solution
Here is the code I used to make a theoretical plot:
R=1440.96;
C=22.09e-9;
Rp=19.49;
R2=300;
L=10.08e-3;
s = tf('s');
z=Rp/(1+(Rp*C)+(Rp/(s*L)));
sys = R2/(R2+z);
h = bodeplot(sys);
setoptions(h,'FreqUnits','Hz','PhaseVisible','off');
grid;
But my plot looks like this:
And after the 103 point it's completely flat.
What is wrong with my code?
Any help is appreciated.