DSP Lab 08 For Class
DSP Lab 08 For Class
To become familiar how to sketch the block diagram of a given DT LTI system from its
system function in Simulink
To plot the step response of the LTI systems in Simulink
1 0.5 z 1
H ( z)
1 0.321z 1 0.921z 2
x.time=(0:30)';
L=size(x.time,1);
x.signals.values=[ones(1,L)]'
n=(0:size(y.signals.values,1)-1);
subplot(211)
stem(x.time,x.signals.values,'fill');
title('Input unit step');
axis([-1 30 0 1.2]);
xlabel('---------------------------->n')
ylabel('------------->Amplitude of u(n)')
subplot(212)
stem(n,y.signals.values,'fill','r');
title('Output of the system');
xlabel('---------------------------->n')
ylabel('------------>Amplitude of y(n)')
0.5
0
0 5 10 15 20 25 30
---------------------------->n
Output of the system
------------>Amplitude of y(n)
20
15
10
0
0 1 2 3 4 5 6 7 8 9 10
---------------------------->n
1. Implement the following systems in Simulink and obtain step responses of each system.
z 1
a. H1 ( z )
3 z 1 2 z 3
z 3
b. H 2 ( z)
1 z 1
1 7 z 2
c. H3 ( z)
1 7 z 2
0.9
d. H 4 ( z)
1 0.11z 3
0.5 z
e. H5 ( z) 2
z 0.3 z 0.2