You are on page 1of 3

Qasim Al_AZZE

B-8-13

num=[4 16];
den=[1 4 16]
t=[0:0.05:8]
c=step(num2,den2,t)
figure(1)
plot(t,c, 'rx-')
grid;
title('Unit-step response of compensated
systems');
xlabel('t Sec');
ylabel('Outputs c');

Unit-step response of compensated systems


1.4

1.2

0.8
Outputs c

0.6

0.4

0.2

0
0 1 2 3 4 5 6 7 8
t Sec
The response for ramp input

num=[4 16];
den=[1 4 16 0]
t=[0:0.1:4]
c=step(num,den,t)
plot(t,c,'.',t,t,'-')
grid;
title('Unit-Ramp response of compensated
systems');
xlabel('t Sec');
ylabel('Outputs c')

Unit-Ramp response of compensated systems


4

3.5

2.5
Outputs c

1.5

0.5

0
0 0.5 1 1.5 2 2.5 3 3.5 4
t Sec

You might also like