Bode Plots Important
Bode Plots Important
Page 3
2. Bode Plots by MatLab Here is an example of doing Bode Plots with Matlab.
+ Vin -
+ Vout Rout -
2.1. Find Vout/Vin Assume you have the following parameters and try to draw the bode plots. First, you need to find out Vout/Vin.
A W
1 1 Rg // Vgs 8 x105 jwCgs jwCgs = = = 1 Vin Rs + Rg // 1 8.1x105 + jw(4 x10 5 ) Rs + Rg // jwCgs jwCgs W gm = nCox ( )(VGSQ Vth ) = 4m 1 L 1 rd = = I DS Vout 8 x105 )( // 1.82k ) = gm Vgs (rd // Rout ) = 4m ( Vin 8.1x105 + jw(4 x10 5 ) Vout 5.82 x106 = Vin 8.1x105 + jw(4 x10 5 )
2.2. Plot the Bode Plot with MatLab
Assume that you wanted to use Matlab in order to obtain Bode magnitude and phase plots for the following transfer function. The s is jw (j omega). H(s) = Z(s)/P(s), where Z(s) = [2.5329e-14*s^2 + 1.5915e-4*s + 1] P(s) = [2.5329e-20*s^2 + 1.5915e-7*s + 1] You would need to type the following: >> num = [2.5329e-14 1.5915e-4 1]; >> den = [2.5329e-20 1.5915e-7 1]; >> sys = tf(num,den) >> bode(sys,{1,1e15})
Page 4
>> num = 5.82e6; den = [4e-5 8.1e5]; sys = tf(num, den) bode(sys,{1,1e15})
%%the numerator %%the denominator %%the transfer function %%plot the magnitude and phase of the transfer function %% The frequency range is 1 rad/s to 1e15 rad/s %Output
Bode Diagram 20 0 Magnitude (dB) Phase (deg) -20 -40 -60 -80 0
-45
-90 10
0
10
10 Frequency (rad/sec)
10
10
15
Page 5
3. Bode Plot by Hand Example 3.1 The Transfer Function Say we want to plot the following transfer function by hand.
For 7.185
17.126
4.938x1011
jw For 1 + 4.938 x1011
Page 6
For 7.185
4.938x1011
For 1 +
jw 4.938 x1011
4. Reference Original EE 105 Discussion Notes from Meghdad Hajimorad (Amin) Last Modified by: Bill Hung Date: 5 August 2006
Page 7