Docsity

Laboratory #3 - Discrete Convolution | EECS 360, Lab Reports of Signals and Systems

Toggle sidebar
bg1
EECS 360
Lab 3: Discrete Convolution
1. Perform convolution for the following cases using the M atlab fun ction “conv”.
For each case, create a figure with 3 subplots: x[n], h[n], and y[n] = x[n] * h[n].
a)
221][
401][
nnh
nnx
b)
101021][
2001][
1
nnh
nnx
n
c) x[n] = [0.5, 0.5, 0.5]
h[n] = [3.0, 2.0, 1.0]
2. Convolve the signals given in part 1 a through c by hand. Compare the results
with the ones obtained by using the conv function.
3. Use the following sequences to complete the problem.
40][
123.11][
2
7.0
22
1
5
11
2
1
nenx
nenx
n
n
a. Create a figure containing 8 subplots. Using pairs of subplots, show the
first 4 shifts of the discrete convolution of the above sequences. See
figure 5-18 in the handout distributed in the class for help. You need to
have the “signal” stem plot and the “m ultiplication” stem plot.
b. Create a new figure and display the results of the convolution of the two
sequences using the conv function.
c. Compare the first four results of the conv solution to your work in part a.
Do they match? Comment on the results.
Useful Website:
http://www.eece.unm.edu/signals/Discrete_Convolution/discrete_convolution.html

Partial preview of the text

Download Laboratory #3 - Discrete Convolution | EECS 360 and more Lab Reports Signals and Systems in PDF only on Docsity!

EECS 360

Lab 3: Discrete Convolution

  1. Perform convolution for the following cases usin g the M atlab function “co nv”. For each case, create a figure with 3 subplots: x[n], h[n], and y[n] = x[n] * h[n].

a) [ ] 1 2 2

[ ] 1 0 4

hn n

xn n

b)

[ ]  1 2  10 10

[ ] 1 0 20

^1   

hn^ ^ n

xn n n

c) x[n] = [0.5, 0.5, 0.5]

h[n] = [3.0, 2.0, 1.0]

  1. Convolve the signals given in part 1 a through c by hand. Compare the results with the ones obtained by using the conv function.
  2. Use the following sequences to complete the problem.

[ ] ^ ^04

[ ] 1 1. 3 2 1

2

  1. 7 2 2

1

5 1 1 2

1

    

x n e n

x n e n n

n

a. Create a figure containing 8 subplots. Using pairs of subplots, show the first 4 shifts of the discrete convolution of the above sequences. See figure 5-18 in the handout distributed in the class for help. You need to have the “signal” stem plot and the “m ultiplication” stem plot. b. Create a new figure and display the results of the convolution of the two sequences using the conv function. c. Compare the first four results of the conv solution to your work in part a. Do they match? Comment on the results.

Useful Website: http://www.eece.unm.edu/signals/Discrete_Convolution/discrete_convolution.html