0% found this document useful (0 votes)
35 views

Name: Zulfiqar Ali.: Department of Electronic Engineering University of Engineering and Technology Abbottabad Campus

1) The MATLAB code analyzes several types of control systems including 1st, 2nd, overdamped, critically damped, and undamped order systems. 2) It obtains the transfer functions, pole-zero maps, step responses, and bode plots for each system. 3) The analysis shows how the damping ratio affects the pole-zero locations and step response characteristics for 2nd order systems.

Uploaded by

Zulfiqar Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Name: Zulfiqar Ali.: Department of Electronic Engineering University of Engineering and Technology Abbottabad Campus

1) The MATLAB code analyzes several types of control systems including 1st, 2nd, overdamped, critically damped, and undamped order systems. 2) It obtains the transfer functions, pole-zero maps, step responses, and bode plots for each system. 3) The analysis shows how the damping ratio affects the pole-zero locations and step response characteristics for 2nd order systems.

Uploaded by

Zulfiqar Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Name: Zulfiqar Ali.

DEPARTMENT OF ELECTRONIC ENGINEERING


UNIVERSITY OF ENGINEERING AND TECHNOLOGY ABBOTTABAD
CAMPUS

Registration No: 17ABELT0736.


Subject: “Control System”
Date of Conduction:
Date of Submission:
Particulars Max. Marks Marks Obtained
Pre-Lab
Lab Performance
Post-Lab
Lab Report
Total

REPORT VERIFICATION
Date:
Instructor Name:
Signature:

LAB REPORT NO.5


System Analysis

Matlab Code:
%System Anyalsis
s = tf('s');
G = 1/(s^2+2*s+5)
pole(G)
[A,B,C,D] = ssdata(G);
eig(A)
%1st Order System
k_dc = 5;
Tc = 10;
u = 2;
s = tf('s');
G = k_dc/(Tc*s+1)
step(u*G)
bode(G)
%2nd Order System
k_dc = 1;
w_n = 10;
zeta = 0.2;
s = tf('s');
G1 = k_dc*w_n^2/(s^2 + 2*zeta*w_n*s + w_n^2);
pzmap(G1)
axis([-3 1 -15 15])
step(G1)
axis([0 3 0 2])
%Overdamped Systems
zeta = 1.2;
G2 = k_dc*w_n^2/(s^2 + 2*zeta*w_n*s + w_n^2);
pzmap(G2)
axis([-20 1 -1 1])
step(G2)
axis([0 1.5 0 1.5])
%Critically-Damped Systems
zeta = 1;
G3 = k_dc*w_n^2/(s^2 + 2*zeta*w_n*s + w_n^2);
pzmap(G3)
axis([-11 1 -1 1])
step(G3)
axis([0 1.5 0 1.5])
%Undamped Systems
G4 = k_dc*w_n^2/(s^2 + 2*zeta*w_n*s + w_n^2);
pzmap(G4)
axis([-1 1 -15 15])
step(G4)
axis([0 5 -0.5 2.5])
bode(G1,G2,G3,G4)
legend('underdamped: zeta < 1','overdamped: zeta > 1','critically-damped: zeta
= 1','undamped: zeta = 0')
Transfer Function:
G=

-------------

s^2 + 2 s + 5

Continuous-time transfer function.

Pole:
ans =

-1.0000 + 2.0000i

-1.0000 - 2.0000i

Eigen Value:
ans =

-1.0000 + 2.0000i

-1.0000 - 2.0000i
1st Order System :

Transfer Function:
G=

--------

10 s + 1

Continuous-time transfer function.

Step Response Of Transfer Function:

Bode Plot:
2nd Order System:

PZ Map:

Step Response Of Transfer Function:


Overdamped System:
PZ Map:

Step Response Of Transfer Function:


Critically-Damped Systems
PZ Map:
Step Response Of Transfer Function:

Undamped Systems
PZ Map:

Step Response Of Transfer Function:


Bode Plot:

You might also like