4. Convolution
4. Convolution
CONVOLUTION
Dr. Muhammad
Zaigham Abbas Shah
Response of LTI systems
Review: Discrete-time signals
A discrete-time signal is a set of
numbers, one can
x=[2 0 -1 3]
Review: Resolution of a DT Signal into pulses
x = [2 0 -1 3]
2
xn x[k ] [n k ]
k 1
x[n] [a0 a1 a2 ]
x[k ] h[ n k ]
a0 [n 0] a1 [n 1] a2 [n 2] Syste k
m
H(.)
Convolution
Convolution is the process by which an input
interacts with an LTI system to produce an output
y[ n] x[ n] * h[ n] x[ k ] h[ n k ]
k
y[ n] x[ n] * h[ n] x[ k ] h[ n k ]
k
Ways to compute D.T. Convolution
Finite State Machine Algorithm (FSMA)/Table
method
Flip, Shift, Multiply, Add
Analytical method
FSMA/Table method
Steps to follow:
Step 1 List the index ‘k’ covering a sufficient range
Step 6 Repeat step 4; stop if all the output values are zero
or if required.
Example 2: Find the convolution of the two sequences x[n] and h[n]
given by,
x[k] = [3 1 2] h[k] = [3 2 1]
k: -2 -1 0 1 2 3 4 5
x[k]: 3 1 2
h[0-k]: 1 2 3
h[1-k]: 1 2 3
h[2-k]: 1 2 3
h[3-k]: 1 2 3
h[4-k]: 1 2 3
h[5-k]: 1 2 3
Hint: The value of k starts from (– length of h + 1) and continues till (length of h + length of x –
1)
k: -2 -1 0 1 2 3 4 5
x[k]: 3 1 2
h[0-k]: 1 2 3
h[1-k]: 1 2 3
h[2-k]: 1 2 3
h[3-k]: 1 2 3
h[4-k]: 1 2 3
h[5-k]: 1 2 3
y[0] = 3 x 3
=9
k: -2 -1 0 1 2 3 4 5
x[k]: 3 1 2
h[0-k]: 1 2 3
h[1-k]: 1 2 3
h[2-k]: 1 2 3
h[3-k]: 1 2 3
h[4-k]: 1 2 3
h[5-k]: 1 2 3
y[0] = 3 x 3
=9
y[1] = 3 x 2 + 1 x 3
=9
k: -2 -1 0 1 2 3 4 5
x[k]: 3 1 2
h[0-k]: 1 2 3
h[1-k]: 1 2 3
h[2-k]: 1 2 3
h[3-k]: 1 2 3
h[4-k]: 1 2 3
h[5-k]: 1 2 3
y[0] = 3 x 3
=9
y[1] = 3 x 2 + 3 x 1
=9
y[2] = 3 x 1 + 1 x 2 + 2 x
3= 11
k: -2 -1 0 1 2 3 4 5
x[k]: 3 1 2
h[0-k]: 1 2 3
h[1-k]: 1 2 3
h[2-k]: 1 2 3
h[3-k]: 1 2 3
h[4-k]: 1 2 3
h[5-k]: 1 2 3
y[0] = 3 x 3 y[3] = 1 x 1 + 2 x 2 = 5
=9
y[1] = 3 x 2 + 3 x 1
=9
y[2] = 3 x 1 + 1 x 2 + 2 x
3= 11
k: -2 -1 0 1 2 3 4 5
x[k]: 3 1 2
h[0-k]: 1 2 3
h[1-k]: 1 2 3
h[2-k]: 1 2 3
h[3-k]: 1 2 3
h[4-k]: 1 2 3
h[5-k]: 1 2 3
y[0] = 3 x 3 y[3] = 1 x 1 + 2 x 2 = 5
=9
y[1] = 3 x 2 + 3 x 1 y[4] = 2 x 1 = 2
=9
y[2] = 3 x 1 + 1 x 2 + 2 x
3= 11
k: -2 -1 0 1 2 3 4 5
x[k]: 0 0 3 1 2
h[-k]: 1 2 3 0 0
h[1-k]: 0 1 2 3 0
h[2-k]: 1 2 3
h[3-k]: 1 2 3
h[4-k]: 1 2 3
h[5-k]: 1 2 3
y[0] = 3 x 3 y[3] = 1 x 1 + 2 x 2 = 5
=9
y[1] = 3 x 2 + 3 x 1 y[4] = 2 x 1 = 2
=9
y[2] = 3 x 1 + 1 x 2 + 2 x y[5] = 0 (no overlap)
3= 11
y[n] {9 9 11 5 2 0}
Example 3: Find the convolution of the two
sequences, x[n] and h[n], represented by,
Commutative…
x1[n] * x2 [n] x2 [n] * x1[n]
Associative…
{x1[n] * x2 [n]} * x3[n] x1[n] *{x2 [n] * x3 [n]}
Distributive…