DSP Lab Spring 23 Exp-03
DSP Lab Spring 23 Exp-03
(EL-3031)
LABORATORY MANUAL
Discrete-Time Systems
(LAB # 03)
Student Name: ______________________________________________
____________________________________________________________________________________________________________________________________________________________
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Lab # 03: Discrete Time Systems
Learning Objectives
A. Introduction
B. Linear Convolution methods
C. Moving Average Filter:
D. Computing Impulse response
E. Illustration of Filtering Concept
Equipment Required
1. PC
2. MATLAB
1. Introduction
Mathematically, a discrete-time system is described as an operator T[.] that takes a sequence
x(n) called excitation and transforms it into another sequence y(n) (called response). Discrete
time systems can be classified into two categories
i) LTI systems ii) NON-LTI systems.
A discrete system T[.] is a linear operator L[.] if and only if L[.] satisfies the principle of
superposition, namely
L[a1x1(n) + a2x2(n)] = a1L[x1(n)] + a2Lx2(n)] and
A discrete system is time-invariant if Shifting the input only causes the same shift in the
output. A system is said to be bounded-input bounded-output(BIBO) stable if every bounded
input produces a bounded output.
An LTI system is BIBO stable if and only if its impulse response is absolutely summable.
A system is said to be causal if the ouput at index n0 depends only on the input up to and
including the index n0; that is output does not depend on the future values of the input. An LTI
system is causal if and only if the impulse response is
_____________________________________________________________________________________________
Page 2 of 7
DSP - Lab National University Roll No: __________
03
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
The linear convolution of two discrete-time signals x(n) and h(n) is defined by
In matlab, there are basically three built in commands to compute the convolution which are
1) “filter” 2) “conv” 3) “toeplitz”
We can also write our manual code to compute the convolution of two discrete time signals.
Task 01:
1, 0 n 5
x[n]=
0, otherwise
(1/2)^n, 0 n 6
h[n]=
0, otherwise
2) Find y[n] using the “conv” command and plot input and output sequences and label
them properly.
Task 02:
Find y[n] using the “filter” command and plot input and output sequences and label them
properly.
Task 03:
1) Find y[n] using the “toeplitz” command and plot input and output sequences and label
them properly.
2) Which of the above method is preferable?
_____________________________________________________________________________________________
Page 3 of 7
DSP - Lab National University Roll No: __________
03
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
h [ n ] ={0.5 , 2, 0 , 1 ,3 }
Task 05:
1) Compute the impulse response of the system whose input-output relation is given by
2) Plot the impulse response and label it properly. Use the “impz” command.
_____________________________________________________________________________________________
Page 4 of 7
DSP - Lab National University Roll No: __________
03
Lab #
of Computer and Emerging Sciences
(EL3031) Islamabad Spring 2023
_____________________________________________________________________________________
Task 06:
1) Generate the following sequence
_____________________________________________________________________________________________
Page 5 of 7
DSP - Lab National University Roll No: __________
03
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 6 of 7
DSP - Lab National University Roll No: __________
03
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 7 of 7