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

Control Lab 6

The document contains MATLAB code for analyzing and plotting the step response of several second-order systems. It defines transfer functions with different damping ratios, calculates their poles, zeros, and step responses. The code generates multiple figures: one plots the step responses on the same axes, another plots the damping ratios versus oscillation magnitudes, and a third stems the poles of several systems on the same axes.

Uploaded by

Raja Sajjad
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Control Lab 6

The document contains MATLAB code for analyzing and plotting the step response of several second-order systems. It defines transfer functions with different damping ratios, calculates their poles, zeros, and step responses. The code generates multiple figures: one plots the step responses on the same axes, another plots the damping ratios versus oscillation magnitudes, and a third stems the poles of several systems on the same axes.

Uploaded by

Raja Sajjad
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

c 

wn=14.6881;
zeta =0.0905;
g=tf([wn^2],[1 2*zeta*wn wn^2]);
step(g,5)
holdon


c 
wn=10;
for zeta =[0 0.7 1 1.5]
g=tf([wn^2],[1 2*zeta*wn wn^2]);
step(g,5)
holdon
end


c 
learall
l
wn=10;
for zeta =[0 0.7 1 1.5]
g=tf([wn^2],[1 2*zeta*wn wn^2]);
a=-1*pi*zeta;
b=sqrt(1-zeta^2);
os=exp(a/b)
figure(1)
stem(zeta,os)
figure(2)
plot(zeta,os)
%
figure(2)
%
step(g,5)
holdon
end


c
 
learall
l
t1=tf([24.54],[1 4 24.54])
[z k]=zero(t1)
a=pole(t1)
step(t1,5)
holdon
t2=tf([73.62],[1 7 36.54 73.62])
[z1 k1]=zero(t2)
a1=pole(t2)
step(t2,5)
holdon
t3=tf([490.84],[1 19 84.54 490.84])
a2=pole(t3)
step(t3,5)
[z3 k3]=zero(t3)
holdon
figure(2)
stem(a)
holdon
stem(a1)
holdon
stem(a2)
holdon

You might also like