SlideShare a Scribd company logo
LESSON 15: BODE
PLOTS OF TRANSFER
FUNCTIONS
ET 438a Automatic Control Systems Technology
1
lesson15et438a.pptx
Learning Objectives
lesson15et438a.pptx
2
After this presentation you will be able to:
 Compute the magnitude of a transfer function for a
given radian frequency.
 Compute the phase shift of a transfer function for a
given radian frequency.
 Construct a Bode plot that shows both magnitude
and phase shift as functions of transfer function input
frequency
 Use MatLAB instructions it produce Bode plots of
transfer functions.
Construction of Bode Plots
lesson15et438a.pptx
3
Bode plots consist of two individual graphs: a) a semilog plot of gain vs
frequency b) a semilog plot of phase shift vs frequency. Frequency is the
logarithmic axis on both plots.
Bode plots of transfer functions give the frequency response of a control system
To compute the points for a Bode Plot:
1) Replace Laplace variable, s, in transfer function
with jw
2) Select frequencies of interest in rad/sec (w=2pf)
3) Compute magnitude and phase angle of the
resulting complex expression.
Construction of Bode Plots
lesson15et438a.pptx
4
Bode plot calculations- magnitude/phase
Gain:
)
)
j
(
G
log(
20
dB
)
j
(
X
)
j
(
Y
)
j
(
G
w


w
w

w
Transfer
Function
Y(jw)
X(jw)
i
o
x
y






X
Y
Where for a given frequency
Phase: i
o 




To find the magnitude and phase shift of a complex number in rectangular
form given: jb
a 

z
2
2
b
a 

z 






 
a
b
tan 1
Computing Transfer Function
Values
lesson15et438a.pptx
5
Example 15-1: A self-regulating tank has a transfer function of the form
shown below.
s
1
G
)
s
(
Q
)
s
(
H




The tank has a time constant, =1590 seconds and a gain, G=2000 s/m2.
Determine the amplitude and phase shift of the system to a sinusoidal
flow input of 0.0001592 Hz
Solution: Substitute values of G, , and jw into transfer function and
compute the gain magnitude and phase shift.
Example 15-1 Solution (1)
lesson15et438a.pptx
6
w



w
w




j
1590
1
2000
)
j
(
Q
)
j
(
H
Hz
0.0001592
f
s
1590
s/m
2000
G 2
  rad/s
001
.
0
Hz
0.0001592
2
f
2 

p

w

p

w
Place radian frequency into transfer function and compute complex number
901
j
9
.
566
590
.
1
j
1
2000
001
.
0
j
1590
1
2000
)
001
.
0
j
(
Q
)
001
.
0
j
(
H







Convert the result to polar form to find magnitude and phase shift
Example 15-1 Solution (2)
lesson15et438a.pptx
7
901
j
9
.
566
590
.
1
j
1
2000
001
.
0
j
1590
1
2000
)
001
.
0
j
(
G 






Complex
gain










w
a
b
tan
b
a
)
G(j 1
-
2
2
 
dB
5
.
60
)
1065
log(
20
dB
1065
.001)
0
G(j
901
9
.
566
.001)
0
G(j
-901
b
9
.
566
a
2
2









Magnitude Calculation Phase shift

58
9
.
566
901
tan
a
b
tan 1
-
1
-







 









Ans
Ans
At 0.001 rad/sec, the system has a gain
of 60.5 dB and the output changes in height
lag the flow changes by 58 degrees
Constructing Bode Plots Using
MatLAB
lesson15et438a.pptx
8
MatLAB has control system toolbox functions for defining Linear Time-
invariant systems (LTI) and constructing the Bode plots.
Use tf and bode functions to create LTI and plot. Introducing zpk function
sys = zpk(z,p,k) Turns arrays of zeros, poles and gains into LTI called sys
Where z = array of transfer function zeros
p = array of transfer function poles
k = array of transfer function gains
Constructing Bode Plots Using
MatLAB
lesson15et438a.pptx
9
Example 15-2: Construct the Bode plot for the given transfer function
shown in factored form using MatLAB control toolbox functions.
  
1
s
001
.
0
1
s
001
.
0
s
005
.
0
)
s
(
V
)
s
(
V
i
o






Solution: Transfer function has one zero at s=0 and two poles at s=-
1/0.001=-1000
Dividing the transfer function denominator and numerator by 0.001
places it into standard form
     
1000
s
1000
s
s
5
001
.
0
1
s
001
.
0
001
.
0
001
.
0
1
s
001
.
0
001
.
0
001
.
0
005
.
0
s
001
.
0
1
1
s
001
.
0
1
s
001
.
0
001
.
0
1
s
005
.
0
)
s
(
V
)
s
(
V
i
o
















































Constructing Bode Plots Using
MatLAB
lesson15et438a.pptx
10
MatLAB code to produce Bode plot of given transfer function
Enter at command prompt of into m-file
k= [5]
p=[1000 1000]
z=[0]
sys=zpk(z,p,k)
bode(sys)
-100
-90
-80
-70
-60
-50
Magnitude
(dB)
10
1
10
2
10
3
10
4
10
5
-270
-225
-180
-135
-90
Phase
(deg)
Bode Diagram
Frequency (rad/s)
Magnitud
e plot
Phase
plot
w=1000
lesson15et438a.pptx
11
Constructing Bode Plots Using
MatLAB
The bode(sys) function can plot more than one transfer function on the
same figure axis. The figure produced by the bode(sys) function can be
copied and pasted into wordprocessors and other programs. To plot
more than one transfer function use the following syntax:
bode(sys1,sys2,…).
Example 15-3: Compare the Bode plots of the transfer function given in
Example 15-2 to the function given below. Use MatLAB to generate the
Bode plots on a single set of axis. Note: the only difference is the gain is
increased by a factor of 100.
  
1000
s
1000
s
s
500
)
s
(
V
)
s
(
V
i
o




Constructing Bode Plots Using
MatLAB
lesson15et438a.pptx
12
Enter at command prompt of into m-file
k= [5]
p=[1000 1000]
z=[0]
sys1=zpk(z,p,k)
k1=[500]
sys2=zpk(z,p,k1
)
bode(sys1,’ro-
’,sys2,’b-’)
This changes
plot styles
(blue solid line)
-100
-80
-60
-40
-20
0
Magnitude
(dB)
10
1
10
2
10
3
10
4
10
5
-270
-225
-180
-135
-90
Phase
(deg)
Bode Diagram
Frequency (rad/s)
sys2
sys1
sys1 &
sys2
End Lesson 15: Bode Plots of
Transfer Functions
ET 438a Automatic Control Systems Technology
13
lesson15et438a.pptx

More Related Content

Similar to lesson15et438a.ppsx

「SPICEの活用方法」セミナー資料(28JAN2011) PPT
「SPICEの活用方法」セミナー資料(28JAN2011) PPT「SPICEの活用方法」セミナー資料(28JAN2011) PPT
「SPICEの活用方法」セミナー資料(28JAN2011) PPTTsuyoshi Horigome
 
A simplified method of designing a phase lead compensator to improve the m-s-...
A simplified method of designing a phase lead compensator to improve the m-s-...A simplified method of designing a phase lead compensator to improve the m-s-...
A simplified method of designing a phase lead compensator to improve the m-s-...eSAT Journals
 
A simplified method of designing a phase lead compensator to improve the m-s-...
A simplified method of designing a phase lead compensator to improve the m-s-...A simplified method of designing a phase lead compensator to improve the m-s-...
A simplified method of designing a phase lead compensator to improve the m-s-...eSAT Journals
 
Time response of first order systems and second order systems
Time response of first order systems and second order systemsTime response of first order systems and second order systems
Time response of first order systems and second order systemsNANDHAKUMARA10
 
Small Signal Modelling and Controller Design of Boost Converter using MATLAB
Small Signal Modelling and Controller Design of Boost Converter using MATLABSmall Signal Modelling and Controller Design of Boost Converter using MATLAB
Small Signal Modelling and Controller Design of Boost Converter using MATLABPremier Publishers
 
BALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptxBALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptxOthmanBensaoud
 
Basic Control System unit6
Basic Control System unit6Basic Control System unit6
Basic Control System unit6Asraf Malik
 
Lesson 8_et438b (2).ppsx
Lesson 8_et438b (2).ppsxLesson 8_et438b (2).ppsx
Lesson 8_et438b (2).ppsxBkannan2
 
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Amr E. Mohamed
 
New controllers efficient model based design method
New controllers efficient model based design methodNew controllers efficient model based design method
New controllers efficient model based design methodAlexander Decker
 
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...csandit
 
Chapter 09
Chapter 09Chapter 09
Chapter 09Tha Mike
 

Similar to lesson15et438a.ppsx (20)

frequency responce.ppt
frequency responce.pptfrequency responce.ppt
frequency responce.ppt
 
Quiz
QuizQuiz
Quiz
 
「SPICEの活用方法」セミナー資料(28JAN2011) PPT
「SPICEの活用方法」セミナー資料(28JAN2011) PPT「SPICEの活用方法」セミナー資料(28JAN2011) PPT
「SPICEの活用方法」セミナー資料(28JAN2011) PPT
 
H010245763
H010245763H010245763
H010245763
 
A simplified method of designing a phase lead compensator to improve the m-s-...
A simplified method of designing a phase lead compensator to improve the m-s-...A simplified method of designing a phase lead compensator to improve the m-s-...
A simplified method of designing a phase lead compensator to improve the m-s-...
 
A simplified method of designing a phase lead compensator to improve the m-s-...
A simplified method of designing a phase lead compensator to improve the m-s-...A simplified method of designing a phase lead compensator to improve the m-s-...
A simplified method of designing a phase lead compensator to improve the m-s-...
 
ACS 22LIE12 lab Manul.docx
ACS 22LIE12 lab Manul.docxACS 22LIE12 lab Manul.docx
ACS 22LIE12 lab Manul.docx
 
Bode Plot Notes Step by Step
Bode Plot Notes Step by StepBode Plot Notes Step by Step
Bode Plot Notes Step by Step
 
Time response of first order systems and second order systems
Time response of first order systems and second order systemsTime response of first order systems and second order systems
Time response of first order systems and second order systems
 
Small Signal Modelling and Controller Design of Boost Converter using MATLAB
Small Signal Modelling and Controller Design of Boost Converter using MATLABSmall Signal Modelling and Controller Design of Boost Converter using MATLAB
Small Signal Modelling and Controller Design of Boost Converter using MATLAB
 
BALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptxBALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptx
 
Basic Control System unit6
Basic Control System unit6Basic Control System unit6
Basic Control System unit6
 
Lesson 8_et438b (2).ppsx
Lesson 8_et438b (2).ppsxLesson 8_et438b (2).ppsx
Lesson 8_et438b (2).ppsx
 
DC servo motor
DC servo motorDC servo motor
DC servo motor
 
Progress 1st sem
Progress 1st semProgress 1st sem
Progress 1st sem
 
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
 
New controllers efficient model based design method
New controllers efficient model based design methodNew controllers efficient model based design method
New controllers efficient model based design method
 
Bode plot
Bode plot Bode plot
Bode plot
 
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
 
Chapter 09
Chapter 09Chapter 09
Chapter 09
 

Recently uploaded

Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdfKamal Acharya
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxMd. Shahidul Islam Prodhan
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxwendy cai
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Electivekarthi keyan
 
Introduction to Casting Processes in Manufacturing
Introduction to Casting Processes in ManufacturingIntroduction to Casting Processes in Manufacturing
Introduction to Casting Processes in Manufacturingssuser0811ec
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdfPratik Pawar
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdfKamal Acharya
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwoodseandesed
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdfKamal Acharya
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringC Sai Kiran
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdfKamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationRobbie Edward Sayers
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxViniHema
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxCenterEnamel
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-IVigneshvaranMech
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdfAhmedHussein950959
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsAtif Razi
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptssuser9bd3ba
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringC Sai Kiran
 

Recently uploaded (20)

Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Introduction to Casting Processes in Manufacturing
Introduction to Casting Processes in ManufacturingIntroduction to Casting Processes in Manufacturing
Introduction to Casting Processes in Manufacturing
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 

lesson15et438a.ppsx

  • 1. LESSON 15: BODE PLOTS OF TRANSFER FUNCTIONS ET 438a Automatic Control Systems Technology 1 lesson15et438a.pptx
  • 2. Learning Objectives lesson15et438a.pptx 2 After this presentation you will be able to:  Compute the magnitude of a transfer function for a given radian frequency.  Compute the phase shift of a transfer function for a given radian frequency.  Construct a Bode plot that shows both magnitude and phase shift as functions of transfer function input frequency  Use MatLAB instructions it produce Bode plots of transfer functions.
  • 3. Construction of Bode Plots lesson15et438a.pptx 3 Bode plots consist of two individual graphs: a) a semilog plot of gain vs frequency b) a semilog plot of phase shift vs frequency. Frequency is the logarithmic axis on both plots. Bode plots of transfer functions give the frequency response of a control system To compute the points for a Bode Plot: 1) Replace Laplace variable, s, in transfer function with jw 2) Select frequencies of interest in rad/sec (w=2pf) 3) Compute magnitude and phase angle of the resulting complex expression.
  • 4. Construction of Bode Plots lesson15et438a.pptx 4 Bode plot calculations- magnitude/phase Gain: ) ) j ( G log( 20 dB ) j ( X ) j ( Y ) j ( G w   w w  w Transfer Function Y(jw) X(jw) i o x y       X Y Where for a given frequency Phase: i o      To find the magnitude and phase shift of a complex number in rectangular form given: jb a   z 2 2 b a   z          a b tan 1
  • 5. Computing Transfer Function Values lesson15et438a.pptx 5 Example 15-1: A self-regulating tank has a transfer function of the form shown below. s 1 G ) s ( Q ) s ( H     The tank has a time constant, =1590 seconds and a gain, G=2000 s/m2. Determine the amplitude and phase shift of the system to a sinusoidal flow input of 0.0001592 Hz Solution: Substitute values of G, , and jw into transfer function and compute the gain magnitude and phase shift.
  • 6. Example 15-1 Solution (1) lesson15et438a.pptx 6 w    w w     j 1590 1 2000 ) j ( Q ) j ( H Hz 0.0001592 f s 1590 s/m 2000 G 2   rad/s 001 . 0 Hz 0.0001592 2 f 2   p  w  p  w Place radian frequency into transfer function and compute complex number 901 j 9 . 566 590 . 1 j 1 2000 001 . 0 j 1590 1 2000 ) 001 . 0 j ( Q ) 001 . 0 j ( H        Convert the result to polar form to find magnitude and phase shift
  • 7. Example 15-1 Solution (2) lesson15et438a.pptx 7 901 j 9 . 566 590 . 1 j 1 2000 001 . 0 j 1590 1 2000 ) 001 . 0 j ( G        Complex gain           w a b tan b a ) G(j 1 - 2 2   dB 5 . 60 ) 1065 log( 20 dB 1065 .001) 0 G(j 901 9 . 566 .001) 0 G(j -901 b 9 . 566 a 2 2          Magnitude Calculation Phase shift  58 9 . 566 901 tan a b tan 1 - 1 -                   Ans Ans At 0.001 rad/sec, the system has a gain of 60.5 dB and the output changes in height lag the flow changes by 58 degrees
  • 8. Constructing Bode Plots Using MatLAB lesson15et438a.pptx 8 MatLAB has control system toolbox functions for defining Linear Time- invariant systems (LTI) and constructing the Bode plots. Use tf and bode functions to create LTI and plot. Introducing zpk function sys = zpk(z,p,k) Turns arrays of zeros, poles and gains into LTI called sys Where z = array of transfer function zeros p = array of transfer function poles k = array of transfer function gains
  • 9. Constructing Bode Plots Using MatLAB lesson15et438a.pptx 9 Example 15-2: Construct the Bode plot for the given transfer function shown in factored form using MatLAB control toolbox functions.    1 s 001 . 0 1 s 001 . 0 s 005 . 0 ) s ( V ) s ( V i o       Solution: Transfer function has one zero at s=0 and two poles at s=- 1/0.001=-1000 Dividing the transfer function denominator and numerator by 0.001 places it into standard form       1000 s 1000 s s 5 001 . 0 1 s 001 . 0 001 . 0 001 . 0 1 s 001 . 0 001 . 0 001 . 0 005 . 0 s 001 . 0 1 1 s 001 . 0 1 s 001 . 0 001 . 0 1 s 005 . 0 ) s ( V ) s ( V i o                                                
  • 10. Constructing Bode Plots Using MatLAB lesson15et438a.pptx 10 MatLAB code to produce Bode plot of given transfer function Enter at command prompt of into m-file k= [5] p=[1000 1000] z=[0] sys=zpk(z,p,k) bode(sys) -100 -90 -80 -70 -60 -50 Magnitude (dB) 10 1 10 2 10 3 10 4 10 5 -270 -225 -180 -135 -90 Phase (deg) Bode Diagram Frequency (rad/s) Magnitud e plot Phase plot w=1000
  • 11. lesson15et438a.pptx 11 Constructing Bode Plots Using MatLAB The bode(sys) function can plot more than one transfer function on the same figure axis. The figure produced by the bode(sys) function can be copied and pasted into wordprocessors and other programs. To plot more than one transfer function use the following syntax: bode(sys1,sys2,…). Example 15-3: Compare the Bode plots of the transfer function given in Example 15-2 to the function given below. Use MatLAB to generate the Bode plots on a single set of axis. Note: the only difference is the gain is increased by a factor of 100.    1000 s 1000 s s 500 ) s ( V ) s ( V i o    
  • 12. Constructing Bode Plots Using MatLAB lesson15et438a.pptx 12 Enter at command prompt of into m-file k= [5] p=[1000 1000] z=[0] sys1=zpk(z,p,k) k1=[500] sys2=zpk(z,p,k1 ) bode(sys1,’ro- ’,sys2,’b-’) This changes plot styles (blue solid line) -100 -80 -60 -40 -20 0 Magnitude (dB) 10 1 10 2 10 3 10 4 10 5 -270 -225 -180 -135 -90 Phase (deg) Bode Diagram Frequency (rad/s) sys2 sys1 sys1 & sys2
  • 13. End Lesson 15: Bode Plots of Transfer Functions ET 438a Automatic Control Systems Technology 13 lesson15et438a.pptx