DSP Lab Spring 23 Exp-07
DSP Lab Spring 23 Exp-07
(EL-3031)
LABORATORY MANUAL
(LAB # 07)
Student Name: ______________________________________________
____________________________________________________________________________________________________________________________________________________________
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Lab # 07: Discrete Time Systems in the Transform (Z)-Domain
Learning Objectives
The aim of this experiment is to illustrate the simulation of some simple Discrete Time
Systems using MATLAB and investigate their properties in transform(Z)- domain.
Equipment Required
1. PC
2. Matlab
1. Introduction:
A linear, time-invariant (LTI) discrete-time system is completely characterized in the time-
domain by its impulse response sequence, and the output sequence of the LTI system can be
computed for any input sequence by convolving the input sequence with its impulse response
sequence. Certain classes of LTI discrete-time systems are characterized also by a linear,
constant-coefficient difference equation. For such systems, the output sequence can be
computed recursively for any input sequence. By applying the DTFT or the z-transform to
either the convolution sum description or to the difference equation representation, the LTI
discrete-time system can also be characterized in the frequency domain. Such transform
domain representations provide additional insight into the behavior of such systems, in
addition to making it simpler to design and implement them for specific applications.
Just as the Fourier transform forms the basis of signal analysis, the z-transform forms the basis of
system analysis. If x[n] is a discrete signal, its z-transform X ( z) is given by:
∞
X ( z )= ∑ x [n] z−n
n=−∞
Since the response y[n] of an LTI system to input x[n] is given by the convolution y [ n ] =x [n]∗h[n]
Where h[n] is the impulse response, we have
y [ n ] =x [ n ]∗h [ n ] → Y ( z )=X (z ) H ¿
The ratio H (z )=Y (z )/ X (z ) defines the impulse response (and so the system response), and is called
the transfer function of the system. The inverse z-transform of the transfer function H(z) yields
the impulse response h[n].
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
We can also find the numerator and denominator of transfer function from the zero and poles
by using matlab function “zp2tf”
[Num,Den]=zp2tf(z,p,k) %(z,p,k) are same as the output of tf2zpk
We can also use “pzmap” function to plot poles and zeros of a transfer function
pzmap(num, den) OR pzmap(p,z)
[r,p,k] = residuez(num,den)
Task#1:
Express the following z-transform in factored form by finding its zeros and poles , plot its poles
and zeros,and then determine its ROCs. If it is unstable then find its impulse response using
“impz” function.
2z4+16z3+44z2+56z+32
G(z)= --------------------------------
3z4+3z3-15z2+18z-12
Task#2:
Determine the rational z-transform from its zero and pole locations. The zeros are at z1=0.21,
z2=3.14, z3=-0.3+j0.5, z4=-0.3-j0.5; the poles are at p1=-0.45, p2=0.67, p3=0.81+j0.72, p4=0.81-
j0.72; and the gain constant k is2.2.
Task#3:
Determine the partial fraction expansion of the z-transform G(z) using Matlab and write it in
expanded form Y(z)
18z3
G(z)= ------------------
18z3+3z2-4z-1
Task#4:
Determine the rational form of z-transform from its partial-fraction expansion representation Y(z)
it is the inverse of above question.
_____________________________________________________________________________________________
Page 3 of 6
DSP - Lab National University Roll No: __________
07
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Task#05:
a) Find the transfer function H(z) of following causal(right-sided)IIR system using “tf”
function.
y [ n ] −0.5 y [ n−1 ] +0.7 y [ n−2 ] =0.15 x [n ]−0.15 x [n−2]
b) Find poles and zeros of above computed transfer function and plot these using “zplane”
command.
c) Find ROC of above systems and tell wheteher it is stable or not?
d) If it is stable then find its frequency response using “freqz” function and plot it its
magnitude and phase response.
Task#6(a):
Determine the first 11 coefficients of the inverse z-transform of the given equation H(z)
using impz function,
1+2.0z-1
H(z)=------------------------
1+0.4z-1-0.12z-2
Task#6(b):
Determine the first 11 coefficients of the inverse z-transform of the given equation H(z) using
filter() function,
1+2.0z -1
H(z)=------------------------
1+0.4z-1-0.12z-2
Task#7:
Using MATLAB compute and plot the group delay of the causal LTI discrete-time system with a
transfer function given by
−1 −2 −3
z −1.2 z + z
H ( z )= −1 −2 −3
1−1.3 z +1.04 z −0.222 z
HINT: Use the “grpdelay” function.
_____________________________________________________________________________________________
Page 4 of 6
DSP - Lab National University Roll No: __________
07
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Student's feedback: Purpose of feedback is to know the strengths and weaknesses of the system
for future improvements. This feedback is for the 'current lab session'. Circle your choice:
[-3 = Extremely Poor, -2 = Very Poor, -1 = Poor, 0 = Average, 1 = Good, 2 = Very Good, 3 = Excellent]:
The following table should describe your experience with:
S# Field Rating Describe in words if required
1 Overall Session -
-2 -1 0 1 2 3
3
2 Lab Instructor -
-2 -1 0 1 2 3
3
3 Lab Staff -
-2 -1 0 1 2 3
3
4 Equipment -
-2 -1 0 1 2 3
3
5 Atmosphere -
-2 -1 0 1 2 3
3
Correctness
Conclusion
Originality
of results
Initiative
Neatness
MARKS
Attitude
TOTAL
TOTAL 10 10 10 20 20 30 100
EARNED
_____________________________________________________________________________________________
Page 5 of 6
DSP - Lab National University Roll No: __________
07
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Assessment Rubric
LLO Statement Assessment Exemplary Proficient Developing Beginning Worst
Method (20%) (20%) (20%) (20%) Performance
(20%)
1 Analysis of Practical Skill Able to attempt Able to attempt Able to attempt Able to attempt Able to attempt
discrete-time Observation complete lab with 80% of the lab 60% of the lab 40% of the lab 20% of the lab
signals and during proper tasks tasks tasks tasks
verifying their experimentati labeling/explanatio
properties i.e. on & Lab n of results and
Discrete Fourier Reports proper commenting
Transform of the code
(DFT), Discrete
Time Fourier
Transform
(DTFT) using
MATLAB.
_____________________________________________________________________________________________
Page 6 of 6