0% found this document useful (0 votes)
89 views7 pages

Bode Plots Important

This document discusses using both hand calculations and MATLAB to generate Bode plots from transfer functions. It provides an example small-signal circuit and derives its transfer function. It then shows how to obtain Bode plots by manually sketching the magnitude and phase components or by using MATLAB's bode() function. Key steps include rearranging the transfer function terms, identifying dominant poles and zeros, and separately plotting the magnitude and phase slopes up to the cutoff frequency.

Uploaded by

Modather Salah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views7 pages

Bode Plots Important

This document discusses using both hand calculations and MATLAB to generate Bode plots from transfer functions. It provides an example small-signal circuit and derives its transfer function. It then shows how to obtain Bode plots by manually sketching the magnitude and phase components or by using MATLAB's bode() function. Key steps include rearranging the transfer function terms, identifying dominant poles and zeros, and separately plotting the magnitude and phase slopes up to the cutoff frequency.

Uploaded by

Modather Salah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Bode Plots by hand and by MatLab

1. Bode Plots by Hand

Bode Phase Plots

Page 3

2. Bode Plots by MatLab Here is an example of doing Bode Plots with Matlab.

+ Vin -

Rs Rg Cgs + Vgs gmVgs rd

+ Vout Rout -

Assume you have a small signal circuit like this.

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.

VGSQ = 3V , Vth = 1V , nCox = 100

, = 20, = 0, V2 L Rs = 10k, Rg = 8 x105 , Rout = 1.82k, Cgs = 5 fF Rg //

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

Transfer function: 5.82e006 -------------------------4e-005 s + 810000

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.

Vout 5.82 x106 = Vin 8.1x105 + jw(4 x105 )


First, we rearrange the numbers

7.185 Vout = jw Vin 1 + 4.938 x1011


Notice when omega w equals to 4.938 x 1011 , it becomes a corner in the bode plot. Also, if w is close to zero, 3.1 Magnitude Plot Just adding all the plots. 20 log(7.185) = 17.126.

Vout is just 7.185. Vin

For 7.185

17.126

4.938x1011
jw For 1 + 4.938 x1011

Page 6

3.2 Phase Plot Just adding all the plots.

Vout 7.185 = jw Vin 1 + 4.938 x1011

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

You might also like