Professional Documents
Culture Documents
ECE301, Homework#3 Solution: August 30, 2007
ECE301, Homework#3 Solution: August 30, 2007
2.21
(a) The desired convolution is
n
X
n
y[n] = α u[n] = (n + 1)αn u[n]
k=0
(c) Case 1, n ≤ 6:
1
∞
X
y[n] = (−1/2)k 4n−k
k=4
∞
X
n
= 4 (−1/8)k
k=4
(−1/8)4
= 4n
1 − (−1/8)
1 n
= 4
83 9
Case 2, n > 6:
∞
X
y[n] = (−1/2)k 4n−k
k=n−2
(−1/8)n−2
= 4n
1 − (−1/8)
= (512/9)(−1/2)n
1 n
83 9
4 , n≤6
y[n] =
(512/9)(−1/2)n , n > 6
2.23
For any value of T , we have
Z ∞
!
∞ X
y(t) = x(t) ∗ h(t) = δ(τ − kT ) h(t − τ )dτ
−∞ k=−∞
∞ Z
X ∞
= δ(τ − kT )h(t − τ )dτ
k=−∞ −∞
X∞
= h(t − kT )
k=−∞
1 1
0.5 0.5
0 0
−0.5 −0.5
−5 −4 −3 −2 −1 0 1 2 3 4 5 −5 −4 −3 −2 −1 0 1 2 3 4 5
(a) T = 4 (b) T = 2
1.5 1.5
1 1
0.5 0.5
0 0
−0.5 −0.5
−5 −4 −3 −2 −1 0 1 2 3 4 5 −5 −4 −3 −2 −1 0 1 2 3 4 5
Matlab Portion
Matlab code for the following problem is attached
(a) Plots of S and X are shown below
Now define an input z[n] = x[n − N ], such that its output y 2 [n] is as
follows
y2 [n] = (z[n − 2] + z[n − 1] + z[n] + z[n + 1] + z[n + 2])/5
= (x[n − 2 − N ] + x[n − 1 − N ] + x[n − N ] + x[n + 1 − N ] + x[n + 2 − N ])/5
= y[n − N ]
Thus the system is time invariant.
We find the impulse response of the system simply by letting the input
x[n] = δ[n]. Then
h[n] = (δ[n − 2] + δ[n − 1] + δ[n] + δ[n + 1] + δ[n + 2])/5.
Because the system is LTI, we have that the output, y[n], for any
input, x[n] follows
y[n] = x[n] ∗ h[n]
= x[n] ∗ (δ[n − 2] + δ[n − 1] + δ[n] + δ[n + 1] + δ[n + 2])/5
= (x[n] ∗ δ[n − 2] + x[n] ∗ δ[n − 1] + x[n] ∗ δ[n] + x[n] ∗ δ[n + 1] + x[n] ∗ δ[n + 2])/5
(by linearity of convolution)
= (x[n − 2] + x[n − 1] + x[n] + x[n + 1] + x[n + 2])/5
(by sifting property of convolution).
This matches the definition of y[n], as expected. (c) Plots of H and Y
are shown below. System implements a crude low-pass filter for noise
removal.
0.5 0.15
0 0.1
−0.5 0.05
−1 0
0 10 20 30 40 50 60 70 80 90 100 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2
1
1
0.5
0 0
−0.5
−1
−1
−2 −1.5
0 10 20 30 40 50 60 70 80 90 100 −20 0 20 40 60 80 100 120