Lab Activity 2
Lab Activity 2
I. Objective
a. To understand and verify the properties of convolution (associative, commutative,
distributive, and delta property) using Python in the context of Digital Signal
Processing (DSP).
II. Lab Activity Procedures
Associative
Commutative
Distributive
Delta Property
delta = np.zeros(len(x))
delta[0] = 1
y2 = convolve_signals(h, g)
y2 = convolve_signals(x, y2)
H. Plot Results
plt.figure(figsize=(12, 8))
plt.subplot(2, 2, 1)
plt.stem(y1, use_line_collection=)
plt.title("Convolution Result 1")
plt.subplot(2, 2, 2)
plt.stem(y2, use_line_collection=)
plt.title("Convolution Result 2")
plt.show()
III. Analysis (Discuss the results obtained from the experiments and verify that the
properties hold true for the given signals.)
IV. Save the soft copy of the Python code used in the lab and have a brief explanation on
each property and how it was verified using the code.
V. Reminders:
a. Progress Report Hierarchy (A, C, D, DP)
i. Associative
1. Code
2. Output
3. Plot
4. Analysis
5. Explanation on verification