Signal and System - Part B
Signal and System - Part B
Faculty of Engineering
Universiti Putra Malaysia
43400 UPM Serdang
Selangor
NAME TASK
Question 4
Figure 2: Matlab’s code for question 4
h1[n]
h2[n]
x[n]
b)
v[n]
y[n]
v[n]
y[n]
The subplot function for convolution of v[n] and y[n] as for question 3b) were considered based
on their transform representations below:
𝑉 = 𝑋 ∗ 𝐻1 and 𝑌 = 𝑋 ∗ 𝐻1 ∗ 𝐻2
While for question 3c), the subplot function of v[n] and y[n] were obtained based on the
transform representations below:
𝑉 = 𝑋 ∗ 𝐻2 and 𝑌 = 𝑋 ∗ 𝐻2 ∗ 𝐻1
The difference between 3b) and 3c) is the interchange of h1 and h2. By using the Matlab
subplot features, it can be observed that from the convolution function plotted, only the internal
values will be interchanged while the output remains unchanged. Even though it has been
reversed , the output of the signals still remains the same.
Question 4
Convolution is a mathematical operation that modifies two functions (x and h) to create a third
function. The convolution integral is a convolution process that occurs between x(t) excitation
and impulse response h(t) in a continuous time (CT) system. The convolution integral is defined
by .
Using the subplot capability of Matlab, we have plotted signal x(t) and h(t) with y(t) in mind.
This was done by having m = 3 , n = 1 and each of the 3 signals having 1, 2, 3 values of p
respectively.
The exact
results.
As a comparison between the exact results and numerically computed results from Matlab, the
graphs obtained are identical. The exact results were obtained by performing integrations to find
y(t) for all values of t. The graph is obtained by performing an integral after reversing and
shifting in time. From here we can conclude that both methods would work wonders although,
using Matlab would save us more time as the variables can be manipulated and configured more
easily. In addition, using a numerically computed method would also help us reduce the risks of
having experimental/human error.