LAB Session NO-:08
Implementing System Functions
Lab Objectives:
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
Activity # 1: Step response of an LTI system if system function is given
Consider an LTI system characterized by the following system function:
1 0.5 z 1
H ( z)
1 0.321z 1 0.921z 2
Sketch the Simulink model shown below
Copy and paste the given code to Initial Function Callback:
[Link]=(0:30)';
L=size([Link],1);
[Link]=[ones(1,L)]'
Copy and paste the given code to Stop Function Callback:
n=(0:size([Link],1)-1);
subplot(211)
stem([Link],[Link],'fill');
title('Input unit step');
axis([-1 30 0 1.2]);
xlabel('---------------------------->n')
ylabel('------------->Amplitude of u(n)')
subplot(212)
stem(n,[Link],'fill','r');
title('Output of the system');
xlabel('---------------------------->n')
ylabel('------------>Amplitude of y(n)')
(Note: In to workspace, change save format to structure)
Run the model and paste the result below
(Note: In to workspace, change save format to structure)
Input unit step
------------->Amplitude of u(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