ECT303 - Module 1 - Part - 3
ECT303 - Module 1 - Part - 3
PROCESSING
MODULE 1- PART III
𝑦 𝑛 = 𝑥1 𝑛 𝑥2 𝑛 = 𝑥1 (𝑘) 𝑥2 ( 𝑛 − 𝑘 )𝑁
𝑘=0
Concentric Circle Method
➢ Given 2 sequences 𝑥1 (𝑛) & 𝑥2 (𝑛) , the circular convolution is obtained as follows:
1. Graph N samples of 𝑥1 (𝑛) as equally spaced points around an outer circle in the
counter clockwise direction.
2. Starting at the same point as 𝑥1 (𝑛), graph N samples of 𝑥2 (𝑛)as equally spaced
points around the inner circle in the clockwise direction.
3. Multiply the corresponding samples on the 2 circles & sum the products to produce
output.
4. Rotate the inner circle one sample at a time in the counter clockwise direction and
repeat step 3 to obtain the next output sample.
5. Repeat step 4 till the inner circle samples line up with the first sample of the exterior
circle once again.
Q. Find the circular convolution of 2 finite duration sequences 𝑥1 (𝑛) =
1, −1, −2,3, −1 & 𝑥2 (𝑛) = {1,2,3} using concentric circle method
Soln:
Both sequences must be of same length N= (max[5,3]) =5. Hence , append 2 zeros to 𝑥2 (𝑛).
𝑥1 𝑛 = 1, −1, −2,3, −1 𝑥2 (𝑛) = {1,2,3,0,0}
Soln:
To find circular convolution , both sequences must be of same length N= max(5,3)=5.
Hence , append 2 zeros to 𝑥2 (𝑛).
𝑥1 (𝑛) = 1, −1, −2,3, −1 𝑥2 (n) = {1,2,3,0,0}
1 0 0 3 2 1 8
2 1 0 0 3 −1 −2
3 2 1 0 0 . −2 = −1
0 3 2 1 0 3 −4
0 0 3 2 1 −1 −1
Soln:
Length of h(n)=3, length of x(n)=4, length of linear convolution N= L+M-1=6
Hence zero pad such that x(n) and h(n) are of length 6
x(n) = {1,2,3,1,0,0} h(n) = {1,1,1,0,0,0}. Perform circular convolution.
1 0 0 0 1 1 1 1
1 1 0 0 0 1 2 3 𝑦(𝑛) = {1,3,6,6,4,1}
1 1 1 0 0 0 3 6
. =
0 1 1 1 0 0 1 6
0 0 1 1 1 0 0 4
0 0 0 1 1 1 0 1
Linear Filtering of Long Data Sequences
➢ Successive blocks can be processed one at a time and the output blocks are
concatenated together to form the final response.
➢ There are 2 methods of filtering long data sequences:
Soln:
Length of impulse response M=3. Let L=3. The data should be divided into blocks of 3.
N=L+M-1=5.
x(n)= { 3 , -1 , 0 , 1 , 3 , 2 , 0 ,1 , 2 , 1 }.
Each block should have M-1=2 zeros padded to the L=3 new data samples. Total length =N=5
𝑥1 𝑛 = { 3, −1, 0, 0, 0 }
𝑥2 (𝑛) = {1 , 3 , 2, 0, 0}
𝑥3 (𝑛) = {0 , 1 , 2, 0, 0}
𝑥4 (𝑛) = {1 , 0, 0 , 0 , 0}
ℎ(𝑛) = {1, 1, 1, 0, 0}. (L-1=2 zeros appended to make length equal to N=5)
➢ Now perform circular convolution of all data sequences with h[n]
𝑦1 (𝑛) = 𝑥1 (𝑛) ℎ(𝑛) = {3 , 2 , 2, −1, 0}
𝑦2 (𝑛) = 𝑥2 𝑛 ℎ(𝑛) = {1 , 4, 6, 5, 2}
𝑦 (𝑛) = 𝑥3 𝑛 ℎ 𝑛 = {0, 1, 3 , 3, 2}
3
𝑦4 (𝑛) = 𝑥4 𝑛 ℎ(𝑛) = {1, 1, 1, 0, 0}
3 2 2 −1 0
add
1 4 6 5 2
add
𝑦(𝑛) = {3, 2, 2, 0, 4, 6, 5, 3, 3, 4, 3, 1} 0 1 3 3 2
add
1 1 1 0 0
Overlap Save Method
Soln:
Length of impulse response M=3. Let L=3. The data should be divided into blocks of 3.
N=L+M-1=5.
x(n)= { 3 , -1 , 0 , 1 , 3 , 2 , 0 ,1 , 2 , 1 }.
Each block should have M-1=2 data sequences from the previous block followed by
L=3 new data samples. Total length =N=5
𝑥1 (𝑛) = { 0 , 0, 3, −1, 0 }
𝑥2 (𝑛) = {−1, 0 , 1 , 3 , 2}
𝑥3 (𝑛) = {3 , 2 , 0 , 1 , 2}
𝑥4 (𝑛) = {1 , 2 , 1 , 0 , 0}
ℎ(𝑛) = {1, 1, 1, 0, 0}. (L-1=2 zeros appended to make length equal to N=5)
➢ Now perform circular convolution of all data sequences with h(n)
𝑦1 𝑛 = 𝑥1 𝑛 ℎ(𝑛) = {−1, 0, 3 , 2 , 2}
𝑦2 𝑛 = 𝑥2 𝑛 ℎ(𝑛) = {4 , 1, 0 , 4, 6}
𝑦3 𝑛 = 𝑥3 𝑛 ℎ(𝑛) = {6 , 7, 5 , 3, 3}
𝑦4 𝑛 = 𝑥4 𝑛 ℎ(𝑛) = {1 , 3, 4 , 3, 1}
The first M-1=2 data points are discarded from each output.
𝑦(𝑛) = {3, 2, 2, 0, 4, 6, 5, 3, 3, 4, 3, 1}
HWQ. Find the output y(n) of a filter whose impulse response is h(n) ={1,2}
and input x(n) ={1, 2, -1, 2, 3, -2,-3,-1, 1, 1, 2,-1} using overlap save & overlap
add method .
Soln:
Length of impulse response M=2. Let L=3. The data should be divided into blocks of 3.
N=L+M-1=4.
x(n)= {1, 2, -1 , 2, 3, -2 , -3,-1, 1 , 1, 2,-1}.
Overlap save method
𝑥1 (𝑛) = { 0, 1, 2, −1}
𝑥2 (𝑛) = {−1 , 2 , 3, −2, }
𝑥3 (𝑛) = {−2 , −3 , −1, 1} ℎ(𝑛) = {1, 2, 0, 0}. (L-1=2 zeros appended to
𝑥4 (𝑛) = {1 , 1, 2 , −1} make length equal to N=4)
𝑥5 (𝑛) = −1 , 0, 0, 0
➢ Now perform circular convolution of all data sequences with h(n)
𝑦1 𝑛 = 𝑥1 𝑛 ℎ(𝑛) = {−2, 1 , 4 , 3}
𝑦2 𝑛 = 𝑥2 𝑛 ℎ(𝑛) = { −5, 0 , 7, 4}
𝑦3 𝑛 = 𝑥3 𝑛 ℎ(𝑛) = { 0 , − 7, −7 , −1}
𝑦4 𝑛 = 𝑥4 𝑛 ℎ(𝑛) = {−1 , 3, 4 , 3}
The first M-1=1 data points are discarded from each output.
𝑦(𝑛) = {1, 4, 3, 0, 7, 4, −7, −7, −1,3, 4, 3, −2}
HWQ. Given two sequences x[n] and y[n] such that x[n]=[2 2 0 2] and
the 4 point circular convolution between x[n] and y[n] results in g[n]=[10
10 8 8] . Determine the sequence y[n].
𝑦 𝑛 = 𝐼𝐷𝐹𝑇 𝑌 𝑘 = {2,2,1,1}
DFT: 𝑋 𝑘 . 𝑌 𝑘 = 𝐺(𝑘)
𝐺 𝑘
𝑌 𝑘 =
𝑋 𝑘
𝑦 𝑛 = 𝐼𝐷𝐹𝑇{𝑌 𝑘 }
𝑋 𝑘 = 6,2, −2,2
𝐺 𝑘 = 36, 2 − 2𝑗, 0, 2 + 2𝑗
𝐺 𝑘
𝑌 𝑘 = = {6,1 − 𝑗, 0,1 + 𝑗}
𝑋 𝑘
REFERENCES
23
THANK YOU!