Lab Report 3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

Lab Report - 3

For The Course


EE-232 Signals and Systems

For
B.E. Computer Engineering

Complied By: Checked By:

DEPARTMENT OF COMPUTER ENGINEERING


College of Electrical & Mechanical Engineering (CEME), NUST-Pakistan

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:

Unit Step signal:

Unit Impulse signal:

Sinusoid signal

Exponential:
Shifting (with user defined shift)
Unit Step signal:

Unit Impulse signal:

Sinusoid signal:

Exponential:
Flipping:
Unit Step signal:

Unit Impulse 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)

 y(n) = 0.9 n (u(n)-u(n-20))

 v(n) = cos(0.12 π n) u(n)

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)

Comment on your observations:


Convolutions is then process with which we can combine two signals to form a new
signal as shown is graphs above.

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.

You might also like