SlideShare a Scribd company logo
1 of 24
Slide Title
• INTRODUCTION OF MATLAB
• CONTROL SYSTEM TOOLBOX
• TRANSFER FUNCTION
– Poles & Zeroes
– Multiplication Of Transfer Functions
– Closed-loop Transfer Function
• TIME RESPONSE OF A CONTROL SYSTEM
– Impulse
– Step
– Ramp
• STATE SPACE REPRESENTATION
– State space to transfer function
– Transfer function to state space
INTRODUCTION
What is MATLAB
• MATLAB is a programming platform designed
specifically for engineers and scientists.
• MATLAB=Matrix + laboratory
• The heart of MATLAB is the MATLAB language, a
matrix-based language.
• MATLAB features a family of application-specific
solutions called toolboxes.
• Areas in which toolboxes are available include signal
processing, control systems, neural networks, fuzzy
logic and many others.
View of MATLAB
What can you do with MATLAB?
• Using MATLAB, you can:
• Analyze data
• Develop algorithms
• Create models and
applications
CONTROL SYSTEM TOOLBOX
LINEAR CONTROL SYSTEM
• A linear control system may be
presented either by a set of
differential equations or by a transfer
function.
Transfer Function
• A transfer function is defined as the ratio of the
Laplace transform of output to the Laplace transform
of the input.
• Transfer functions are defined in MATLAB by storing
the coefficients of the numerator and the denominator
in vectors.
• For example,
T/F IN MATLAB
• 𝐺 𝑠 =
100
𝑠2
+14𝑠+100
• Here we type the following code
• num = 100;
• den = [1 14 100];
• To check your entry you can
use the command printsys
as shown below:
– printsys(num,den);
– Or G=tf(num,den)
POLES & ZEROS
• We can find poles with the help of following MATLAB
command.
• poles = roots(den)
𝐺 𝑠 =
100
𝑠2
+14𝑠+100
• We can find Zeros with the help of following
MATLATLABAB command
• zeros = roots(num)
PZMAP
• To plot the poles and zeros of any transfer function
there is a built in function pzmap in the MATLAB
• pzmap(num,den)
MULTIPLICATION OF TRANSFER FUNCTIONS
• num1 = [1 0];
• den1 = [9 17];
• num2 = 9*[1 3];
• den2 = [2 9 27];
• [num, den] = series (num1,den1,num2,den2);
printsys(num,den);
CLOSED-LOOP TRANSFER FUNCTION
• num = 9;
• den = [1 5];
• [numt,dent] = cloop(num,den,-1);
• printsys(numt,dent)
TIME RESPONSE OF CONTROL SYSTEM
TIME RESPONSE OF A CONTROL SYSTEM
• Step Response
• G(S)=
𝟏𝟎𝟎
𝑺 𝟐
+𝟏𝟒𝑺+𝟏𝟎𝟎
• To find the step response of the system
• num = 100;
• den = [1 14 100];
• step(num,den)
IMPULSE RESPONSE
• G(S)=
𝟏𝟎𝟎
S2+14S+100
• To find the step response of the system
• num = 100;
• den = [1 14 100];
• impulse(num,den)
Ramp Response
• G(S)=
100
S2+14S+100
• To find the ramp response of the system:
• t = 0:0.01:10;
• r = t;
• num = 100;
• den = [1 14 100];
• lsim(num,den,r,t)
TRANSFER FUNCTION TO STATE SPACE
• num = [12 59];
•
• den = [1 6 8];
•
• [A,B,C,D] = tf2ss(num,den);
•
• printsys(A,B,C,D)
STATE SPACE TO TRANSFER FUNCTION
• A = [-5 -1; 3 -1]
• B = [1 ; 0];
• C = [1 2];
• D = [0];
• [num,den]= ss2tf(A,B,C,D);
•
• printsys(num,den)
ANY QUESTION?
Control System toolbox in Matlab

More Related Content

What's hot

Chapter 4 time domain analysis
Chapter 4 time domain analysisChapter 4 time domain analysis
Chapter 4 time domain analysis
Bin Biny Bino
 
Lecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systemsLecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systems
Saifullah Memon
 
Lecture 6 ME 176 2 Time Response
Lecture 6 ME 176 2 Time ResponseLecture 6 ME 176 2 Time Response
Lecture 6 ME 176 2 Time Response
Leonides De Ocampo
 

What's hot (20)

Water level controller
Water level controllerWater level controller
Water level controller
 
Lecture 5: The Convolution Sum
Lecture 5: The Convolution SumLecture 5: The Convolution Sum
Lecture 5: The Convolution Sum
 
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...
 
Chapter 4 time domain analysis
Chapter 4 time domain analysisChapter 4 time domain analysis
Chapter 4 time domain analysis
 
Class 25 i, d electronic controllers
Class 25   i, d electronic controllersClass 25   i, d electronic controllers
Class 25 i, d electronic controllers
 
Signal Flow Graph, SFG and Mason Gain Formula, Example solved with Masson Gai...
Signal Flow Graph, SFG and Mason Gain Formula, Example solved with Masson Gai...Signal Flow Graph, SFG and Mason Gain Formula, Example solved with Masson Gai...
Signal Flow Graph, SFG and Mason Gain Formula, Example solved with Masson Gai...
 
Lecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systemsLecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systems
 
modeling of system electrical, Basic Elements Modeling-R,L,C Solved Examples ...
modeling of system electrical, Basic Elements Modeling-R,L,C Solved Examples ...modeling of system electrical, Basic Elements Modeling-R,L,C Solved Examples ...
modeling of system electrical, Basic Elements Modeling-R,L,C Solved Examples ...
 
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
 
Block diagrams and signal flow graphs
Block diagrams and signal flow graphsBlock diagrams and signal flow graphs
Block diagrams and signal flow graphs
 
Modern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI SystemsModern Control - Lec07 - State Space Modeling of LTI Systems
Modern Control - Lec07 - State Space Modeling of LTI Systems
 
Control chap4
Control chap4Control chap4
Control chap4
 
Introduction of control engineering
Introduction of control engineeringIntroduction of control engineering
Introduction of control engineering
 
signal flow graph
signal flow graphsignal flow graph
signal flow graph
 
Transfer functions, poles and zeros.
Transfer functions, poles and zeros.Transfer functions, poles and zeros.
Transfer functions, poles and zeros.
 
Design and implementation of analog multipliers with IC's
Design and implementation of analog multipliers with IC'sDesign and implementation of analog multipliers with IC's
Design and implementation of analog multipliers with IC's
 
Lecture 6 ME 176 2 Time Response
Lecture 6 ME 176 2 Time ResponseLecture 6 ME 176 2 Time Response
Lecture 6 ME 176 2 Time Response
 
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...
 
Signals & Systems PPT
Signals & Systems PPTSignals & Systems PPT
Signals & Systems PPT
 
Pid controllers Interview Questions
Pid controllers Interview QuestionsPid controllers Interview Questions
Pid controllers Interview Questions
 

Similar to Control System toolbox in Matlab

MATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.pptMATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.ppt
ssuserdee4d8
 

Similar to Control System toolbox in Matlab (20)

Basic concept of MATLAB.ppt
Basic concept of MATLAB.pptBasic concept of MATLAB.ppt
Basic concept of MATLAB.ppt
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshop
 
MatlabIntro (1).ppt
MatlabIntro (1).pptMatlabIntro (1).ppt
MatlabIntro (1).ppt
 
Matlab pt1
Matlab pt1Matlab pt1
Matlab pt1
 
Matlab_Harshal.pptx
Matlab_Harshal.pptxMatlab_Harshal.pptx
Matlab_Harshal.pptx
 
MATLAB & Image Processing
MATLAB & Image ProcessingMATLAB & Image Processing
MATLAB & Image Processing
 
DSJ_Unit I & II.pdf
DSJ_Unit I & II.pdfDSJ_Unit I & II.pdf
DSJ_Unit I & II.pdf
 
Matlab
MatlabMatlab
Matlab
 
Matlab
MatlabMatlab
Matlab
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
 
Data structure and algorithm using java
Data structure and algorithm using javaData structure and algorithm using java
Data structure and algorithm using java
 
Matlab ppt
Matlab pptMatlab ppt
Matlab ppt
 
MATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.pptMATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.ppt
 
DSP Mat Lab
DSP Mat LabDSP Mat Lab
DSP Mat Lab
 
Matlab intro
Matlab introMatlab intro
Matlab intro
 
Matlab lec1
Matlab lec1Matlab lec1
Matlab lec1
 
NVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflow
NVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflowNVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflow
NVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflow
 
Mbd dd
Mbd ddMbd dd
Mbd dd
 
Python basics
Python basicsPython basics
Python basics
 
Python basics
Python basicsPython basics
Python basics
 

More from Abdul Sami

More from Abdul Sami (18)

L#1 active and passive voice
L#1 active and passive voiceL#1 active and passive voice
L#1 active and passive voice
 
L#5 sentences which cannot be changed into passive voice
L#5 sentences which cannot be changed into passive voiceL#5 sentences which cannot be changed into passive voice
L#5 sentences which cannot be changed into passive voice
 
L#4 Passive voice for imperative sentences
L#4 Passive voice for imperative sentencesL#4 Passive voice for imperative sentences
L#4 Passive voice for imperative sentences
 
8-Difference between phrase and clause
8-Difference between phrase and clause8-Difference between phrase and clause
8-Difference between phrase and clause
 
7-What is a clause
7-What is a clause7-What is a clause
7-What is a clause
 
5-Types of sentences-structure wise
5-Types of sentences-structure wise5-Types of sentences-structure wise
5-Types of sentences-structure wise
 
4 types of sentences
4 types of sentences4 types of sentences
4 types of sentences
 
3 subject
3 subject3 subject
3 subject
 
2 sentence
2 sentence2 sentence
2 sentence
 
1 article
1 article1 article
1 article
 
Partial Discharge and it's measurement
Partial Discharge and it's measurementPartial Discharge and it's measurement
Partial Discharge and it's measurement
 
Generation of HVDC
Generation of HVDCGeneration of HVDC
Generation of HVDC
 
Generation of HVAC
Generation of HVACGeneration of HVAC
Generation of HVAC
 
Impulse generator
Impulse generatorImpulse generator
Impulse generator
 
Problems of Power Distribution and Utilization
Problems of Power Distribution and UtilizationProblems of Power Distribution and Utilization
Problems of Power Distribution and Utilization
 
Communication media
Communication mediaCommunication media
Communication media
 
Tariff Problems
Tariff ProblemsTariff Problems
Tariff Problems
 
Transducers and it's types
Transducers and it's typesTransducers and it's types
Transducers and it's types
 

Recently uploaded

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
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
 
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
 

Recently uploaded (20)

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...
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
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...
 
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
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
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
 
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
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
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
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
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...
 

Control System toolbox in Matlab

  • 1.
  • 2.
  • 3. Slide Title • INTRODUCTION OF MATLAB • CONTROL SYSTEM TOOLBOX • TRANSFER FUNCTION – Poles & Zeroes – Multiplication Of Transfer Functions – Closed-loop Transfer Function • TIME RESPONSE OF A CONTROL SYSTEM – Impulse – Step – Ramp • STATE SPACE REPRESENTATION – State space to transfer function – Transfer function to state space
  • 5. What is MATLAB • MATLAB is a programming platform designed specifically for engineers and scientists. • MATLAB=Matrix + laboratory • The heart of MATLAB is the MATLAB language, a matrix-based language. • MATLAB features a family of application-specific solutions called toolboxes. • Areas in which toolboxes are available include signal processing, control systems, neural networks, fuzzy logic and many others.
  • 7. What can you do with MATLAB? • Using MATLAB, you can: • Analyze data • Develop algorithms • Create models and applications
  • 9. LINEAR CONTROL SYSTEM • A linear control system may be presented either by a set of differential equations or by a transfer function.
  • 10. Transfer Function • A transfer function is defined as the ratio of the Laplace transform of output to the Laplace transform of the input. • Transfer functions are defined in MATLAB by storing the coefficients of the numerator and the denominator in vectors. • For example,
  • 11. T/F IN MATLAB • 𝐺 𝑠 = 100 𝑠2 +14𝑠+100 • Here we type the following code • num = 100; • den = [1 14 100]; • To check your entry you can use the command printsys as shown below: – printsys(num,den); – Or G=tf(num,den)
  • 12. POLES & ZEROS • We can find poles with the help of following MATLAB command. • poles = roots(den) 𝐺 𝑠 = 100 𝑠2 +14𝑠+100 • We can find Zeros with the help of following MATLATLABAB command • zeros = roots(num)
  • 13. PZMAP • To plot the poles and zeros of any transfer function there is a built in function pzmap in the MATLAB • pzmap(num,den)
  • 14. MULTIPLICATION OF TRANSFER FUNCTIONS • num1 = [1 0]; • den1 = [9 17]; • num2 = 9*[1 3]; • den2 = [2 9 27]; • [num, den] = series (num1,den1,num2,den2); printsys(num,den);
  • 15. CLOSED-LOOP TRANSFER FUNCTION • num = 9; • den = [1 5]; • [numt,dent] = cloop(num,den,-1); • printsys(numt,dent)
  • 16. TIME RESPONSE OF CONTROL SYSTEM
  • 17. TIME RESPONSE OF A CONTROL SYSTEM • Step Response • G(S)= 𝟏𝟎𝟎 𝑺 𝟐 +𝟏𝟒𝑺+𝟏𝟎𝟎 • To find the step response of the system • num = 100; • den = [1 14 100]; • step(num,den)
  • 18. IMPULSE RESPONSE • G(S)= 𝟏𝟎𝟎 S2+14S+100 • To find the step response of the system • num = 100; • den = [1 14 100]; • impulse(num,den)
  • 19. Ramp Response • G(S)= 100 S2+14S+100 • To find the ramp response of the system: • t = 0:0.01:10; • r = t; • num = 100; • den = [1 14 100]; • lsim(num,den,r,t)
  • 20.
  • 21. TRANSFER FUNCTION TO STATE SPACE • num = [12 59]; • • den = [1 6 8]; • • [A,B,C,D] = tf2ss(num,den); • • printsys(A,B,C,D)
  • 22. STATE SPACE TO TRANSFER FUNCTION • A = [-5 -1; 3 -1] • B = [1 ; 0]; • C = [1 2]; • D = [0]; • [num,den]= ss2tf(A,B,C,D); • • printsys(num,den)