0% found this document useful (0 votes)
13 views2 pages

Olorunda 6

Uploaded by

kanuemmanuelisco
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)
13 views2 pages

Olorunda 6

Uploaded by

kanuemmanuelisco
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

% Olorunda Goodness EEE/13/3837

% STEP REPONCE OF SECOND ORDER SYSTEM


wn = 5;
damping_ratio = 0.6;
[num0,den] = ord2(wn,damping_ratio);
num = 5^2*num0;
printsys(num,den,'s');
% ploting the unit step response
num = [0 0 25];
den = [1 6 25];
step(num,den);
grid
title('unit step-response for G(s)= 25/(s^2 + 6s + 25)');

% ploting the unit step response


num = [0 0 25];
den = [1 6 25];
% zeta attain 0, 0.2, 0.4, 0.6, 0.8, 1
t = 0:0.2:10;
zeta = [0 0.2 0.4 0.6 0.8 1];
for n = 1:6;
den = [1 2*zeta(n) 1];
[y(1:51,n),x,t] = step(num,den,t); % unit-step-response
end
%the two dimensional plot
plot(t,y);
grid
title('unit step-response curves with \omega_n = 6 and zeta)');
xlabel('t(sec)');
ylabel('responce');
text(4.1,1.86,'\zeta = 0');
text(3.5,1.5,'0.2');
text(3.5,1.24,'0.4');
text(3.5,1.08,'0.6');
text(3.5,0.95,'0.8');
text(3.5,0.86,'1.0');

num/den =

25

s^2 + 6 s + 25

1
Published with MATLAB® R2013a

You might also like