Professional Documents
Culture Documents
Lab Report 3
Lab Report 3
Lab Report 3
For
B.E. Computer Engineering
Objective:
The objective of this lab is to practice some basic operations performed on a signal like
shifting and flipping. An introduction to convolution is also included in this lab.
Task 1:
Generate four basic discrete time signals(unit step, unit impulse, sinusoid and exponential
). Perform following operations on them:
Sinusoid signal
Exponential:
Shifting (with user defined shift)
Unit Step signal:
Sinusoid signal:
Exponential:
Flipping:
Unit Step signal:
Sinusoid Signal:
Exponential:
Task 2:
Make stem plots of the following signals. Decide for yourself what the range of n should
be.
f(n)=u(n)-u(n-4)
g(n)=n.u(n)-2(n-4)u(n-4)+(n-8)u(n-8)
x(n) = δ ( n )−2 δ (n−4)
Task 3:
f(n) = u(n)−u(n−4)
g(n) = n·u(n)−2(n−4)·u(n−4) + (n−8)·u(n−8).
Make stem plots of the following convolutions. Use the MATLAB conv command to
compute the convolutions. Use the commands title, xlabel, ylabel to label the axes of your
plots.
(a) f(n)∗f(n)
(b) f(n)∗g(n)
(c) g(n)∗δ(n)
(e) g(n)∗g(n)
Conclusion:
In this lab, we learnt some basic operations performed on a signal like shifting and
flipping and plotted some discrete signals. We also performed convolution of signals
using MATLAB convolution operator.