0% found this document useful (0 votes)
8 views3 pages

DSP Lab 08 For Class

The document describes implementing linear time-invariant (LTI) systems from their system functions in Simulink. It provides an example of sketching the Simulink model and obtaining the step response for a given system. Students are asked to implement and obtain step responses for 5 additional systems.

Uploaded by

Zahid Iqbal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

DSP Lab 08 For Class

The document describes implementing linear time-invariant (LTI) systems from their system functions in Simulink. It provides an example of sketching the Simulink model and obtaining the step response for a given system. Students are asked to implement and obtain step responses for 5 additional systems.

Uploaded by

Zahid Iqbal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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:

x.time=(0:30)';
L=size(x.time,1);
x.signals.values=[ones(1,L)]'

Copy and paste the given code to Stop Function Callback:

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)')

(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

You might also like