مهم
مهم
a) Obtain the transfer function for the system with DAC and ADC with Zero- order hold.
b) Obtain the transfer function for the system with DAC and ADC with first order hold.
c) Obtain the poles of the systems in (a) and (b) and comment on the differences between
them.
a) Obtain the transfer function for the system with DAC and ADC with Zero- order hold
numG=10*[1 2];
denG=[1 5 0];
G=tf(numG,denG)
G =
10 s + 20
---------
s^2 + 5 s
SYS1=c2d(G,.05)
SYS1 =
0.4654 z - 0.4212
----------------------
z^2 - 1.779 z + 0.7788
2000
1500
Amplitude
1000
500
0
0 50 100 150 200 250 300 350 400 450 500
Time (seconds)
b) Obtain the transfer function for the system with DAC and ADC with first order hold
SYS2=c2d(G,.05,'foh')
SYS2 =
Step Response
2500
SYS2
G
2000
1500
Amplitude
1000
500
0
0 50 100 150 200 250 300 350 400 450 500
Time (seconds)
figure (2)
step (SYS2,'r')
hold on
step (G)
c) Obtain the poles of the systems in (a) and (b) and comment on the differences between
them.
The system 1 and system 2 have same poles by sampling period of
0.05s.