Digital Signal Processing (EEE324) : Lab Instructor Engr. Muhammad Ayaz
Digital Signal Processing (EEE324) : Lab Instructor Engr. Muhammad Ayaz
Student Name
Class
NO./Section
Lab 02
Convolution and correlation of discrete time signals
Objective:
1. Convolution of DTS and its types
2. Correlation of DTS and its types
What is Convolution ?
Convolution is a mathematical way of combining two signals to form a third signal. It is the
single most important technique in Digital Signal Processing. Using the strategy of impulse
decomposition, systems are described by a signal called the impulse response.
Four steps in convolution:
1. Folding
2. Shifting
3. Multiplying
4. Adding
Linear convolution:
Flowchart:
Using MATLAB
Task 01
Find linear convolution of input sequence x=[1 2 3 4 5] and system response h=[5 8 3 5 4 6] ?
Task 02
Find convolution of input sequence x=[1 2 3 4 5] and system response h=[5 8 3 5 4 6] ?
Task 03
Find convolution of input sequence x=[1 2 -1 1] and system response h=[5 8 3 5 4 6] ?
Circular Convolution:
Circular convolution, also known as cyclic convolution, is a special case of periodic convolution,
which is the convolution of two periodic functions that have the same period In particular, the
DTFT of the product of two discrete sequences is the periodic convolution of the DTFTs of the
individual sequences.
Task 04
Find circular convolution of input sequence x=[2 3 4 5 6] and system response
h=[2 3 1 4 5] ?
Task 05
Find circular convolution of input sequence x=[5 4 3 2 8] and system response
h=[10 90 3 2 3] ?
Task 06
Find linear & circular convolution and difference of input sequence x=[1 2 -1 1] and system
response h=[1 1 2 1 2 2 1 1] ?
Correlation
Correlation is a measure of similarity between two signals. The general formula for correlation
is
∫∞−∞x1(t)x2(t−τ)dt
There are two types of correlation:
Auto correlation
Cross correlation
Cross correlation and autocorrelation are very similar, but they involve different types
of correlation. Cross correlation happens when two different sequences
are correlated. Autocorrelation is the correlation between two of the same sequences.
Typical applications of signal autocorrelation are in radar, sonar, satellite, and wireless
communications systems. Devices that measure signal power using signal correlation are known
as signal correlators. There are also many applications of signal cross correlation in signal
processing systems, especially when the signal is corrupted by another undesirable signal (noise)
so that the signal estimation (detection) from a noisy signal has to be performed. Signal cross
correlation can be also considered as a measure of similarity of two signals.
EEE324 Digital Signal Processing
Task 09
Generate below three 20-sample exponential sequences given by 0.5n, 0.6n, and 0.8n, with n≥0.
Use stem3 to plot the sequences side by side.
Task 10
Generate below three 30-sample exponential sequences given by 0.3n, 0.1n, and 0.2n, with n≥0.
Use stem3 to plot the sequences side by side
Post Lab Tasks
Task 01
Find linear convolution of input sequence x=[-4 5 -5 -6] and system response h=[5 -9 3 -10 4 6] ?
Task 02
Find convolution of input sequence x=[10 2 3 -20 5] and system response h=[4 5 -5 -6] ?
Task 03
Find convolution of input sequence x=[-10 20 -10 30] and system response h=[5 80 3 5 -40 6] ?
Task 04
Find circular convolution of input sequence x=[10 20 30 40 50] and system response
h=[2 -3 10 4 5] ?
Task 05
Find circular convolution of input sequence x=[-50 4 -30 2 8] and system response
h=[10 -8 30 2 -4] ?
Task 06
Find linear & circular convolution and difference of input sequence x=[1 2 -1 1 50] and system
response h=[10 10 20 10 20 20 60 60] ?
Task 7
Generate below three 30-sample exponential sequences given by 0.3n, 0.1n, and 0.2n, with n≥0.
Use stem3 to plot the sequences side by side
Task 8
Generate below three 60-sample exponential sequences given by 0.4n, 0.6n, and 0.8n, with n≥0.
Use stem3 to plot the sequences side by side
Find convolution and correlation of all sequences with each other and find difference between
them.
Conclusion of Lab 02