SlideShare a Scribd company logo
1 of 12
LAB#05
Time Response of a Control System:-
>> %Example of Time Response of a Control System:-
>> A=[-1 -1;6.5 0];
>> B=[1 1;1 0];
>> C=[1 0;0 1];
>> D=[0 0;0 0];
>> step(A,B,C,D) %This command is To get the graph of unit step;
Graph:-
>> a=step(A,B,C,D) %This command gives the value of step response;
>> impulse(A,B,C,D) %This command is to get the graph of impulse response;
>> step(A,B,C,D,1) %This command gives the Graph of U1 i/p and o/p;
>> step(A,B,C,D,2) %This command gives the Graph of U2 i/p and o/p;
Exercise#1: - Find transient and steady state characteristics of the following transfer
functions.
num=[1 2];
den=[1 7 12];
a=step(num,den);
subplot(3,1,1);
plot(a)
grid on
title('step response')
%Now impulse response;
b=impulse(num,den);
subplot(3,1,2);
plot(b)
grid off
title('impulse response');
%Now ramp response;
t=0:0.1:1;
u=t;
c=lsim(num,den,u,t);
subplot(3,1,3);
plot(c)
title('ramp response')
2nd
part:-
>> numA=[0 2 3 1];
>> denA=[1 3 1 0];
>> a=step(numA,denA);
>> subplot(3,1,1);
>> plot(a)
>> title('step response')
>> % for impulse response;
>> b=impulse(numA,denA);
>> subplot(3,1,2);
>> plot(b)
>> title('impulse response');
>> % for ramp response;
>> t=0:0.01:2;
>> u=t;
>> c=lsim(numA,denA,u,t);
>> subplot(3,1,3)
>> plot(c)
>> title('ramp response')
Exercise#2: - Reduce the following open loop systems into a single block and find time
response of the system.
(i)
num1=[1];
den1=[9 17];
num2=9*[1 3];
den2=[2 9 27];
S
9S + 17
9(S+3)
2S2 + 9s + 27
[numA,denA]=series(num1,den1,num2,den2)
a=step(numA,denA);
subplot(3,1,1);
plot(a)
title('step response')
b=impulse(denA,denA);
subplot(3,1,2)
plot(b)
title('impulse response')
%Now ramp response;
t=0:0.01:3;
u=t;
c=lsim(numA,denA,u,t)
subplot(3,1,3);
plot(c)
title('ramp response')
(ii)
4/5
S + 3
2S + 4
S3
S2
S - 6
num1=[2 4];
den1=[1 0 0 0];
num2=[4/5];
den2=[1 3];
[numa,dena]=series(num1,den1,num2,den2);
num3=[1 0 0];
den3=[0 1 -6];
[numA,denA]=series(numa,dena,num3,den3)
%step response;
a=step(numA,denA);
subplot(3,1,1);
plot(a)
title('step response')
%impulse response;
b=impulse(denA,denA);
subplot(3,1,2)
plot(b)
title('impulse response')
%Now ramp response;
t=0:0.01:3;
u=t;
c=lsim(numA,denA,u,t)
subplot(3,1,3);
plot(c)
title('ramp response')
Exercise#3: - Find time response of following closed loop systems
(i)
>> numA=[0 9];
>> denA=[1 5];
>> numB=[0 1];
>> denB=[0 1];
>> [num1,den1]=feedback(numA,denA,numB,denB)
num1 =
0 0 9
den1 =
0 1 14
>> a=step(num1,den1);
> > subplot(3,1,1);
>> plot(a)
>> title('step response')
>> % for Impulse response;
C(S)R(S)
-
9
S + 5
>> b=impulse(num1,den1);
>> subplot(3,1,2);
>> plot(b)
>> title('impulse response')
>> %for ramp response;
>> t=0:0.001:2;
>> u=t;
>> c=lsim(num1,den1,u,t);
>> subplot(3,1,3);
>> plot(c)
>> title('ramp response')
(ii)
>> numA=[0 1];
>> denA=[1 1];
>> numB=[0 2];
>> denB=[1 0];
>> [num1,den1]=feedback(numA,denA,numB,denB)
num1 =
0 1 0
den1 =
1 1 2
>> a=step(num1,den1);
>> subplot(3,1,1);
>> plot(a)
>> title('step response')
C(S)R(S)
-
1
S +1
2
S
>> % for impulse response;
>> b=impulse(num1,den1);
>> subplot(3,1,2);
>> plot(b)
>> title('impulse response')
>> % for ramp response;
>> t=0:0.01:1;
>> u=t;
>> c=lsim(num1,den1,u,t);
>> subplot(3,1,3);
>> plot(c)
>> title('ramp response')
C(S)R(S)
-
9
S + 5

More Related Content

What's hot

Unit v laplace transform(formula)
Unit v laplace transform(formula)Unit v laplace transform(formula)
Unit v laplace transform(formula)
Babu Rao
 

What's hot (20)

Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLABMathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB
 
Analysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemAnalysis of Electro-Mechanical System
Analysis of Electro-Mechanical System
 
Nyquist and polar plot 118 & 117
Nyquist and polar plot 118 & 117Nyquist and polar plot 118 & 117
Nyquist and polar plot 118 & 117
 
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 chap4
Control chap4Control chap4
Control chap4
 
Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]
 
Control chap8
Control chap8Control chap8
Control chap8
 
Abstract
AbstractAbstract
Abstract
 
Introduction to MATLAB
Introduction to MATLAB Introduction to MATLAB
Introduction to MATLAB
 
Stability of Control System
Stability of Control SystemStability of Control System
Stability of Control System
 
Dispersion uwsb
Dispersion   uwsbDispersion   uwsb
Dispersion uwsb
 
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORMZ TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
Z TRANSFORM PROPERTIES AND INVERSE Z TRANSFORM
 
Unit v laplace transform(formula)
Unit v laplace transform(formula)Unit v laplace transform(formula)
Unit v laplace transform(formula)
 
Inside Apache SystemML
Inside Apache SystemMLInside Apache SystemML
Inside Apache SystemML
 
laplace transform and inverse laplace, properties, Inverse Laplace Calculatio...
laplace transform and inverse laplace, properties, Inverse Laplace Calculatio...laplace transform and inverse laplace, properties, Inverse Laplace Calculatio...
laplace transform and inverse laplace, properties, Inverse Laplace Calculatio...
 
Numerical methods generating polynomial
Numerical methods generating polynomialNumerical methods generating polynomial
Numerical methods generating polynomial
 
Dsp lab task1 ganesh
Dsp lab task1 ganeshDsp lab task1 ganesh
Dsp lab task1 ganesh
 
Explicit Formula for Riemann Prime Counting Function
Explicit Formula for Riemann Prime Counting FunctionExplicit Formula for Riemann Prime Counting Function
Explicit Formula for Riemann Prime Counting Function
 
Decimation and Interpolation
Decimation and InterpolationDecimation and Interpolation
Decimation and Interpolation
 
Ayush exp 2
Ayush exp 2Ayush exp 2
Ayush exp 2
 

Similar to control system

STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptxSTEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
Anikendu Maitra
 
Incorporate the SOR method in the multigridTest-m and apply the multig.pdf
Incorporate the SOR method in the multigridTest-m and apply the multig.pdfIncorporate the SOR method in the multigridTest-m and apply the multig.pdf
Incorporate the SOR method in the multigridTest-m and apply the multig.pdf
aartechindia
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
Abi finni
 
Solutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfSolutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdf
WaleedHussain30
 
Control system ppt by biru.pptx
Control system ppt by biru.pptxControl system ppt by biru.pptx
Control system ppt by biru.pptx
Subhradipjana
 
Lab 3 nust control
Lab 3 nust controlLab 3 nust control
Lab 3 nust control
talhawaqar
 

Similar to control system (20)

1st-order-system.pdf
1st-order-system.pdf1st-order-system.pdf
1st-order-system.pdf
 
Time-Response Lecture
Time-Response LectureTime-Response Lecture
Time-Response Lecture
 
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptxSTEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
STEP RESPONSE OF FIRST ORDER SYSTEM PART 1.pptx
 
Transient response analysis
Transient response analysisTransient response analysis
Transient response analysis
 
cruise control system
cruise control systemcruise control system
cruise control system
 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal Processing
 
BEC-26 control-systems_unit-III_pdf
BEC-26 control-systems_unit-III_pdfBEC-26 control-systems_unit-III_pdf
BEC-26 control-systems_unit-III_pdf
 
Incorporate the SOR method in the multigridTest-m and apply the multig.pdf
Incorporate the SOR method in the multigridTest-m and apply the multig.pdfIncorporate the SOR method in the multigridTest-m and apply the multig.pdf
Incorporate the SOR method in the multigridTest-m and apply the multig.pdf
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
 
BALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptxBALLANDBEAM_GROUP7.pptx
BALLANDBEAM_GROUP7.pptx
 
Solutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfSolutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdf
 
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
 
Control system ppt by biru.pptx
Control system ppt by biru.pptxControl system ppt by biru.pptx
Control system ppt by biru.pptx
 
Consider the system.docx
Consider the system.docxConsider the system.docx
Consider the system.docx
 
Control assignment#2
Control assignment#2Control assignment#2
Control assignment#2
 
Ae11 sol
Ae11 solAe11 sol
Ae11 sol
 
Lab 3 nust control
Lab 3 nust controlLab 3 nust control
Lab 3 nust control
 
Informe laboratorio n°1
Informe laboratorio n°1Informe laboratorio n°1
Informe laboratorio n°1
 
jacobi method, gauss siedel for solving linear equations
jacobi method, gauss siedel for solving linear equationsjacobi method, gauss siedel for solving linear equations
jacobi method, gauss siedel for solving linear equations
 
Advance Control System MatLab & Simulink codes with outputs
Advance Control System MatLab & Simulink codes with outputsAdvance Control System MatLab & Simulink codes with outputs
Advance Control System MatLab & Simulink codes with outputs
 

Recently uploaded

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 

Recently uploaded (20)

AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 

control system

  • 1. LAB#05 Time Response of a Control System:- >> %Example of Time Response of a Control System:- >> A=[-1 -1;6.5 0]; >> B=[1 1;1 0]; >> C=[1 0;0 1]; >> D=[0 0;0 0]; >> step(A,B,C,D) %This command is To get the graph of unit step; Graph:- >> a=step(A,B,C,D) %This command gives the value of step response; >> impulse(A,B,C,D) %This command is to get the graph of impulse response;
  • 2. >> step(A,B,C,D,1) %This command gives the Graph of U1 i/p and o/p; >> step(A,B,C,D,2) %This command gives the Graph of U2 i/p and o/p;
  • 3. Exercise#1: - Find transient and steady state characteristics of the following transfer functions. num=[1 2]; den=[1 7 12]; a=step(num,den); subplot(3,1,1); plot(a) grid on title('step response') %Now impulse response; b=impulse(num,den); subplot(3,1,2); plot(b) grid off title('impulse response'); %Now ramp response; t=0:0.1:1; u=t; c=lsim(num,den,u,t); subplot(3,1,3); plot(c) title('ramp response')
  • 4. 2nd part:- >> numA=[0 2 3 1]; >> denA=[1 3 1 0]; >> a=step(numA,denA); >> subplot(3,1,1); >> plot(a) >> title('step response') >> % for impulse response; >> b=impulse(numA,denA); >> subplot(3,1,2); >> plot(b) >> title('impulse response'); >> % for ramp response; >> t=0:0.01:2;
  • 5. >> u=t; >> c=lsim(numA,denA,u,t); >> subplot(3,1,3) >> plot(c) >> title('ramp response') Exercise#2: - Reduce the following open loop systems into a single block and find time response of the system. (i) num1=[1]; den1=[9 17]; num2=9*[1 3]; den2=[2 9 27]; S 9S + 17 9(S+3) 2S2 + 9s + 27
  • 6. [numA,denA]=series(num1,den1,num2,den2) a=step(numA,denA); subplot(3,1,1); plot(a) title('step response') b=impulse(denA,denA); subplot(3,1,2) plot(b) title('impulse response') %Now ramp response; t=0:0.01:3; u=t; c=lsim(numA,denA,u,t) subplot(3,1,3); plot(c) title('ramp response') (ii) 4/5 S + 3 2S + 4 S3 S2 S - 6
  • 7. num1=[2 4]; den1=[1 0 0 0]; num2=[4/5]; den2=[1 3]; [numa,dena]=series(num1,den1,num2,den2); num3=[1 0 0]; den3=[0 1 -6]; [numA,denA]=series(numa,dena,num3,den3) %step response; a=step(numA,denA); subplot(3,1,1); plot(a) title('step response') %impulse response; b=impulse(denA,denA); subplot(3,1,2) plot(b) title('impulse response') %Now ramp response; t=0:0.01:3; u=t; c=lsim(numA,denA,u,t) subplot(3,1,3); plot(c) title('ramp response') Exercise#3: - Find time response of following closed loop systems
  • 8. (i) >> numA=[0 9]; >> denA=[1 5]; >> numB=[0 1]; >> denB=[0 1]; >> [num1,den1]=feedback(numA,denA,numB,denB) num1 = 0 0 9 den1 = 0 1 14 >> a=step(num1,den1); > > subplot(3,1,1); >> plot(a) >> title('step response') >> % for Impulse response; C(S)R(S) - 9 S + 5
  • 9. >> b=impulse(num1,den1); >> subplot(3,1,2); >> plot(b) >> title('impulse response') >> %for ramp response; >> t=0:0.001:2; >> u=t; >> c=lsim(num1,den1,u,t); >> subplot(3,1,3); >> plot(c) >> title('ramp response')
  • 10. (ii) >> numA=[0 1]; >> denA=[1 1]; >> numB=[0 2]; >> denB=[1 0]; >> [num1,den1]=feedback(numA,denA,numB,denB) num1 = 0 1 0 den1 = 1 1 2 >> a=step(num1,den1); >> subplot(3,1,1); >> plot(a) >> title('step response') C(S)R(S) - 1 S +1 2 S
  • 11. >> % for impulse response; >> b=impulse(num1,den1); >> subplot(3,1,2); >> plot(b) >> title('impulse response') >> % for ramp response; >> t=0:0.01:1; >> u=t; >> c=lsim(num1,den1,u,t); >> subplot(3,1,3); >> plot(c) >> title('ramp response')