SlideShare ist ein Scribd-Unternehmen logo
1 von 22
INTRODUCTION TO
CONTROL SYSTEM
CONCEPTS IN MATALAB
CONTENTS
• Introduction to control system concepts
• MATLAB for Control Engineering
• Tutorial problems
MATLAB Functions
• Control system solutions can be found by
using MATLAB functions/commands.
• Transfer functions from polynomial coefficents
can be obtained
• Transfer functions can be determined for
complex control system
• Pole-zero mapping
• Time response for given input
• Plot on root locus and Nyquist plots etc
INTRODUCTION TO CONTROL SYSTEM
CONCEPTS
• Open loop system
• Closed loop system
• Laplace transform approach (Frequency –
domain approach)
• State variable approach (Time-domain
approach)
INTRODUCTION TO CONTROL SYSTEM
CONCEPTS
Differential
equatons
(Time Domain)
Algebraic equations
(Frequency domain)
Differential equations
(Time Domain)
Algebraic equations
(Frequency domain)
MATLAB COMMANDS
COMMAND DESCRIPTION
tf(num,den) Computes transfer function with
numerator(num) and denominator(den)
tfdata Returns the numerator(S) and
denominator(S) of the transfer function
Step Computes unit step response of a system
dstep Computes unit step response of a discrete
system
series Finds transfer function of blocks
connected in series
parallel Finds transfer function of blocks
connected in parallel
Pzmap (sys) Plots the pole –zero map of the LTI model
system
ltiview LTI Viewer (time and frequency response
analysis)
ss Creates state –space (SS) models
tf2ss Converts transfer function to state
variable form
ss2tf Converts state variable form to transfer
function form
residue Computes partial fraction expansion from
polynomial coefficents
roots Finds the roots of a polynomial
rlocus Computes the root locus of given transfer
function
bode Generates the bode plot
margin Calculates gain and phase margin, gain
cross over and phase cross over
frequency
nyquist Computes nyquist plot
CONTROL SYSTEM APPLICATIONS
Example: 1
G1=tf([1 2 3],[1 2 3 4])
bode(G1);
Example: 2
G1=tf([1 2 3],[1 2 3 4])
G2=tf([2 6 8] ,[4 6 7 8])
G3=G1*G2;
[num,den]=tfdata (G3,'V')
Example:3 (A) (Laplace and Inverse Laplace Transform)
syms s t;
a=sin(t);
b=laplace(a);
disp(b);
disp(ilaplace(b));
Example:3(B) (Laplace and Inverse Laplace
Transform)
syms t
ft = 3*exp(-2*t);
Fs=laplace(ft);
Fs=3/(s+2)
Example:3(C)
f(t)= e-2t [1-cos(t)].
Example:3(D) (Laplace and Inverse Laplace
Transform)
F(s)= s2+2s+3/s3+6s2+12s+8
syms s t
Fs = (s^2+2*s +3)/(s^3+6*s^2 + 12*s+8)
Fs = (s^2+2*s +3)/(s^3+6*s^2 + 12*s+8);
ft=ilaplace(Fs)
Example:3(E) ( find inverse laplace transform)
F(s)= 1/ s(s+2)
• Example:3(F)
s+6/s3+4s2+3s
n = [1 6];
d = [1 4 3 0];
[r, p, k] = residue( n,d)
Find partial fraction (S3 +8s+6)/(s3 +4s2+3s+1)
CONTROL ANALYSIS RESPONSES
Example4: (Step Response)
G=tf([1 7 24 24],[1 10 35 50 24]);
step(G,10);
G2=2*G;
Step(G,G2,20);
Example:5 (Root locus)
num=[1 4 8];
den=[1 18 120.3 357.5 478.5 306];
G=tf(num,den);
rlocus(G);
Exampl:6 (Bode plot)
s=tf('s');
G=(s+8)/(s+(s^2+0.2*s+4)*(s+1)*(s+3));
bode(G);
[gm pm wgc wpc]=margin(G)
Bodemag(G); – For magnitude plot
nyquist(G); - For nyquist plot
nichols(G);
PLOTTING OPTIONS
a=[1 2 3];
b=[4 5 6];
plot(a,b,'k' ,2*a,2*b,'b:');
grid;
xlabel('X-axis');
ylabel('y-axis');
title('title');
legend('plot(i)' , 'plot(ii)');
text(6,10,'f(x)=x^2','color' , 'r');
Example:7 (Block diagram reduction)
Find the overall transfer function and pole zero
map for the given block
%print TF1
n1=[1];
d1=[1 1];
disp('TF1 is: ' );
printsys(n1 ,d1)
%print TF2
n2=[1 2];
d2=[0 1];
disp('TF2 is: ');
printsys(n2,d2)
%print TF3
n3=[1 0];
d3=[1 0 2];
disp('TF3 is: ');
printsys(n3,d3)
%print TF4
n4=(1);
d4=(1);
disp('TF4 is; ');
printsys(n4,d4)
%obtain TF5 from parallel combination of TF1
and TF2
[n5, d5]=parallel (n1,d1,n2,d2);
disp('TF5 is: ');
printsys(n5,d5)
%obtain TF6 from feedback loop of TF3 and TF4
[n6,d6]=feedback(n3,d3,n4,d4);
disp('TF6 is: ');
printsys(n6,d6)
%overall transfer function is obtained by series
connection of TF5 and TF6
[n7,d7]=series(n5,d5,n6,d6);
disp('overall Transfer function is; ');
printsys(n7,d7);
%obtain pole zero map from TF7
sys1=tf(n7,d7);
pzmap(sys1)

Weitere ähnliche Inhalte

Was ist angesagt?

Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3
mkazree
 
Digital control systems
Digital control systemsDigital control systems
Digital control systems
avenkatram
 

Was ist angesagt? (20)

Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3
 
Modern Control - Lec 03 - Feedback Control Systems Performance and Characteri...
Modern Control - Lec 03 - Feedback Control Systems Performance and Characteri...Modern Control - Lec 03 - Feedback Control Systems Performance and Characteri...
Modern Control - Lec 03 - Feedback Control Systems Performance and Characteri...
 
Modern Control System (BE)
Modern Control System (BE)Modern Control System (BE)
Modern Control System (BE)
 
Digital control systems
Digital control systemsDigital control systems
Digital control systems
 
State space analysis, eign values and eign vectors
State space analysis, eign values and eign vectorsState space analysis, eign values and eign vectors
State space analysis, eign values and eign vectors
 
Transient response analysis
Transient response analysisTransient response analysis
Transient response analysis
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
 
PID Controller and its design
PID Controller and its designPID Controller and its design
PID Controller and its design
 
Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20Digital control systems (dcs) lecture 18-19-20
Digital control systems (dcs) lecture 18-19-20
 
Control systems engineering
Control systems engineeringControl systems engineering
Control systems engineering
 
Transfer functions, poles and zeros.
Transfer functions, poles and zeros.Transfer functions, poles and zeros.
Transfer functions, poles and zeros.
 
05 tuning.pid.controllers
05 tuning.pid.controllers05 tuning.pid.controllers
05 tuning.pid.controllers
 
Control system
Control systemControl system
Control system
 
Cascade control system
Cascade control systemCascade control system
Cascade control system
 
Introduction of control engineering
Introduction of control engineeringIntroduction of control engineering
Introduction of control engineering
 
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...
 
Ch1 introduction to control
Ch1 introduction to controlCh1 introduction to control
Ch1 introduction to control
 
Bode plot
Bode plot Bode plot
Bode plot
 
Dcs functional block diagrams
Dcs functional block diagramsDcs functional block diagrams
Dcs functional block diagrams
 
Plc (programming)
Plc (programming)Plc (programming)
Plc (programming)
 

Ähnlich wie Control system concepts by using matlab

transformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eañotransformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eaño
luis506251
 
Frequency Response with MATLAB Examples.pdf
Frequency Response with MATLAB Examples.pdfFrequency Response with MATLAB Examples.pdf
Frequency Response with MATLAB Examples.pdf
Sunil Manjani
 
ct ppt 1.pptxnxjwkwodkwjjdjxjqosowoo19di
ct  ppt 1.pptxnxjwkwodkwjjdjxjqosowoo19dict  ppt 1.pptxnxjwkwodkwjjdjxjqosowoo19di
ct ppt 1.pptxnxjwkwodkwjjdjxjqosowoo19di
shahmirbut89
 
Meeting w3 chapter 2 part 1
Meeting w3   chapter 2 part 1Meeting w3   chapter 2 part 1
Meeting w3 chapter 2 part 1
mkazree
 
Meeting w3 chapter 2 part 1
Meeting w3   chapter 2 part 1Meeting w3   chapter 2 part 1
Meeting w3 chapter 2 part 1
Hattori Sidek
 
chapter-2.ppt control system slide for students
chapter-2.ppt control system slide for studentschapter-2.ppt control system slide for students
chapter-2.ppt control system slide for students
lipsa91
 

Ähnlich wie Control system concepts by using matlab (20)

5_2019_01_12!09_25_57_AM.ppt
5_2019_01_12!09_25_57_AM.ppt5_2019_01_12!09_25_57_AM.ppt
5_2019_01_12!09_25_57_AM.ppt
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
 
NAS-Ch4-Application of Laplace Transform
NAS-Ch4-Application of Laplace TransformNAS-Ch4-Application of Laplace Transform
NAS-Ch4-Application of Laplace Transform
 
transformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eañotransformada de lapalace universidaqd ppt para find eaño
transformada de lapalace universidaqd ppt para find eaño
 
matlab_simulink_for_control082p.pdf
matlab_simulink_for_control082p.pdfmatlab_simulink_for_control082p.pdf
matlab_simulink_for_control082p.pdf
 
Frequency Response with MATLAB Examples.pdf
Frequency Response with MATLAB Examples.pdfFrequency Response with MATLAB Examples.pdf
Frequency Response with MATLAB Examples.pdf
 
Chapter 2 laplace transform
Chapter 2 laplace transformChapter 2 laplace transform
Chapter 2 laplace transform
 
ct ppt 1.pptxnxjwkwodkwjjdjxjqosowoo19di
ct  ppt 1.pptxnxjwkwodkwjjdjxjqosowoo19dict  ppt 1.pptxnxjwkwodkwjjdjxjqosowoo19di
ct ppt 1.pptxnxjwkwodkwjjdjxjqosowoo19di
 
FirstOrderDynamic.pdf
FirstOrderDynamic.pdfFirstOrderDynamic.pdf
FirstOrderDynamic.pdf
 
BALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptxBALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptx
 
Block Diagram Algebra
Block Diagram AlgebraBlock Diagram Algebra
Block Diagram Algebra
 
Meeting w3 chapter 2 part 1
Meeting w3   chapter 2 part 1Meeting w3   chapter 2 part 1
Meeting w3 chapter 2 part 1
 
Meeting w3 chapter 2 part 1
Meeting w3   chapter 2 part 1Meeting w3   chapter 2 part 1
Meeting w3 chapter 2 part 1
 
Stability Analysis of Discrete System
Stability Analysis of Discrete SystemStability Analysis of Discrete System
Stability Analysis of Discrete System
 
Csl9 4 f15
Csl9 4 f15Csl9 4 f15
Csl9 4 f15
 
time response analysis
time response analysistime response analysis
time response analysis
 
chapter-2.ppt control system slide for students
chapter-2.ppt control system slide for studentschapter-2.ppt control system slide for students
chapter-2.ppt control system slide for students
 
Clase 02-modelado-de-sistemas-de-control (1)
Clase 02-modelado-de-sistemas-de-control (1)Clase 02-modelado-de-sistemas-de-control (1)
Clase 02-modelado-de-sistemas-de-control (1)
 
Course-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdfCourse-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdf
 
Advanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdfAdvanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdf
 

Mehr von CharltonInao1

Mehr von CharltonInao1 (20)

happy wednesday.pptx
happy wednesday.pptxhappy wednesday.pptx
happy wednesday.pptx
 
PRINCIPLES OF AIR CONDITIONING.pptx
PRINCIPLES OF AIR CONDITIONING.pptxPRINCIPLES OF AIR CONDITIONING.pptx
PRINCIPLES OF AIR CONDITIONING.pptx
 
Engineering Data Analysis-ProfCharlton
Engineering Data  Analysis-ProfCharltonEngineering Data  Analysis-ProfCharlton
Engineering Data Analysis-ProfCharlton
 
Industrial and Manufacturing Processes
Industrial and Manufacturing ProcessesIndustrial and Manufacturing Processes
Industrial and Manufacturing Processes
 
REVIEW OF POWER PLANT
REVIEW OF POWER PLANTREVIEW OF POWER PLANT
REVIEW OF POWER PLANT
 
ME lab III
ME lab IIIME lab III
ME lab III
 
ME Orientation fo r Evening Class ME 1101
ME Orientation fo r Evening Class ME 1101ME Orientation fo r Evening Class ME 1101
ME Orientation fo r Evening Class ME 1101
 
ME lab 3
ME lab 3ME lab 3
ME lab 3
 
ME Orientation
ME OrientationME Orientation
ME Orientation
 
Thoughts of ProfCharlton
Thoughts of ProfCharltonThoughts of ProfCharlton
Thoughts of ProfCharlton
 
Answer key in Microhydro Powerplant EXam
Answer key  in Microhydro Powerplant  EXamAnswer key  in Microhydro Powerplant  EXam
Answer key in Microhydro Powerplant EXam
 
Answer key final exam statics
Answer key final exam  staticsAnswer key final exam  statics
Answer key final exam statics
 
Pe 3032, control systems engineering syllabus original as of 2 21- 2017
Pe 3032, control systems engineering syllabus original as of 2 21- 2017Pe 3032, control systems engineering syllabus original as of 2 21- 2017
Pe 3032, control systems engineering syllabus original as of 2 21- 2017
 
Answer to Final Exam Micro hyudro powerplant
Answer  to Final Exam Micro hyudro powerplantAnswer  to Final Exam Micro hyudro powerplant
Answer to Final Exam Micro hyudro powerplant
 
Chapter 1 introduction to refrigeration engineering
Chapter 1 introduction to refrigeration engineeringChapter 1 introduction to refrigeration engineering
Chapter 1 introduction to refrigeration engineering
 
Board exam on druyers
Board exam on druyersBoard exam on druyers
Board exam on druyers
 
Seat work on Ice refrigeration Apples and Strawberries
Seat work on Ice refrigeration  Apples and StrawberriesSeat work on Ice refrigeration  Apples and Strawberries
Seat work on Ice refrigeration Apples and Strawberries
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Chapter 3a air conditioning process
Chapter  3a  air conditioning processChapter  3a  air conditioning process
Chapter 3a air conditioning process
 
Chapter 3a air conditioning process pdf
Chapter  3a  air conditioning process  pdfChapter  3a  air conditioning process  pdf
Chapter 3a air conditioning process pdf
 

Kürzlich hochgeladen

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Kürzlich hochgeladen (20)

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 

Control system concepts by using matlab

  • 2. CONTENTS • Introduction to control system concepts • MATLAB for Control Engineering • Tutorial problems
  • 3. MATLAB Functions • Control system solutions can be found by using MATLAB functions/commands. • Transfer functions from polynomial coefficents can be obtained • Transfer functions can be determined for complex control system • Pole-zero mapping • Time response for given input • Plot on root locus and Nyquist plots etc
  • 4. INTRODUCTION TO CONTROL SYSTEM CONCEPTS • Open loop system • Closed loop system • Laplace transform approach (Frequency – domain approach) • State variable approach (Time-domain approach)
  • 5. INTRODUCTION TO CONTROL SYSTEM CONCEPTS Differential equatons (Time Domain) Algebraic equations (Frequency domain)
  • 6. Differential equations (Time Domain) Algebraic equations (Frequency domain)
  • 7. MATLAB COMMANDS COMMAND DESCRIPTION tf(num,den) Computes transfer function with numerator(num) and denominator(den) tfdata Returns the numerator(S) and denominator(S) of the transfer function Step Computes unit step response of a system dstep Computes unit step response of a discrete system series Finds transfer function of blocks connected in series parallel Finds transfer function of blocks connected in parallel Pzmap (sys) Plots the pole –zero map of the LTI model system ltiview LTI Viewer (time and frequency response analysis)
  • 8. ss Creates state –space (SS) models tf2ss Converts transfer function to state variable form ss2tf Converts state variable form to transfer function form residue Computes partial fraction expansion from polynomial coefficents roots Finds the roots of a polynomial rlocus Computes the root locus of given transfer function bode Generates the bode plot margin Calculates gain and phase margin, gain cross over and phase cross over frequency nyquist Computes nyquist plot
  • 9. CONTROL SYSTEM APPLICATIONS Example: 1 G1=tf([1 2 3],[1 2 3 4]) bode(G1); Example: 2 G1=tf([1 2 3],[1 2 3 4]) G2=tf([2 6 8] ,[4 6 7 8]) G3=G1*G2;
  • 10. [num,den]=tfdata (G3,'V') Example:3 (A) (Laplace and Inverse Laplace Transform) syms s t; a=sin(t); b=laplace(a); disp(b); disp(ilaplace(b));
  • 11. Example:3(B) (Laplace and Inverse Laplace Transform) syms t ft = 3*exp(-2*t); Fs=laplace(ft); Fs=3/(s+2) Example:3(C) f(t)= e-2t [1-cos(t)].
  • 12. Example:3(D) (Laplace and Inverse Laplace Transform) F(s)= s2+2s+3/s3+6s2+12s+8 syms s t Fs = (s^2+2*s +3)/(s^3+6*s^2 + 12*s+8) Fs = (s^2+2*s +3)/(s^3+6*s^2 + 12*s+8); ft=ilaplace(Fs) Example:3(E) ( find inverse laplace transform) F(s)= 1/ s(s+2)
  • 13. • Example:3(F) s+6/s3+4s2+3s n = [1 6]; d = [1 4 3 0]; [r, p, k] = residue( n,d) Find partial fraction (S3 +8s+6)/(s3 +4s2+3s+1)
  • 14. CONTROL ANALYSIS RESPONSES Example4: (Step Response) G=tf([1 7 24 24],[1 10 35 50 24]); step(G,10); G2=2*G; Step(G,G2,20);
  • 15. Example:5 (Root locus) num=[1 4 8]; den=[1 18 120.3 357.5 478.5 306]; G=tf(num,den); rlocus(G);
  • 16. Exampl:6 (Bode plot) s=tf('s'); G=(s+8)/(s+(s^2+0.2*s+4)*(s+1)*(s+3)); bode(G); [gm pm wgc wpc]=margin(G) Bodemag(G); – For magnitude plot nyquist(G); - For nyquist plot nichols(G);
  • 17. PLOTTING OPTIONS a=[1 2 3]; b=[4 5 6]; plot(a,b,'k' ,2*a,2*b,'b:'); grid; xlabel('X-axis'); ylabel('y-axis'); title('title');
  • 18. legend('plot(i)' , 'plot(ii)'); text(6,10,'f(x)=x^2','color' , 'r'); Example:7 (Block diagram reduction) Find the overall transfer function and pole zero map for the given block
  • 19. %print TF1 n1=[1]; d1=[1 1]; disp('TF1 is: ' ); printsys(n1 ,d1) %print TF2 n2=[1 2]; d2=[0 1]; disp('TF2 is: '); printsys(n2,d2)
  • 20. %print TF3 n3=[1 0]; d3=[1 0 2]; disp('TF3 is: '); printsys(n3,d3) %print TF4 n4=(1); d4=(1); disp('TF4 is; '); printsys(n4,d4)
  • 21. %obtain TF5 from parallel combination of TF1 and TF2 [n5, d5]=parallel (n1,d1,n2,d2); disp('TF5 is: '); printsys(n5,d5) %obtain TF6 from feedback loop of TF3 and TF4 [n6,d6]=feedback(n3,d3,n4,d4); disp('TF6 is: '); printsys(n6,d6)
  • 22. %overall transfer function is obtained by series connection of TF5 and TF6 [n7,d7]=series(n5,d5,n6,d6); disp('overall Transfer function is; '); printsys(n7,d7); %obtain pole zero map from TF7 sys1=tf(n7,d7); pzmap(sys1)