Professional Documents
Culture Documents
Labsheet 2:
Lab Exercises:
1. Take the following two sinusoids :
x1 (t) = 2 cos(2π ∗ 600t)
x2 (t) = 2 cos 2π ∗ 1000t + π3
Generate a Matlab program to sample each sinusoid and generate a sum of sinusoids
i.e. , x[n] = x1 [n] + x2 [n] using sampling rate of 8000 Hz. Plot x[n] over a range of
time that will exhibit approximately 0.1 sec.
2. Using Matlab, find the even and odd part of the signals given below :
i. x1 [n] = 1 2 4 6 8 10
ii. x2 [n] = cos(2π f3 n) + sin(π f3 n)
3. Find the convolution of the given finite length sequences
h i
x1 [n] = 4 2 1 5 −3 2
↑
h i
x2 [n] = −1 0 4 3 1
↑
1
Figure 1: