(00000) Midterm Answer DSP Spring 2022
(00000) Midterm Answer DSP Spring 2022
(00000) Midterm Answer DSP Spring 2022
Faculty Engineering
Department Electrical Communication and Electronics
Module Code ECE4332
Module Title Digital Signal Processing
Semester Spring 2022
Time Allowed 1.5 hours
Total Mark 20
No. of Pages 12 (including the cover page)
Material provided None
Equipment permitted No programmable calculator
Additional Instructions None
Page 1 of 12
October University for Modern Sciences and Arts
Faculty of Engineering
Module Code: ECE 4332
Module Title: Digital Signal Processing
Semester: Spring 2022
Solution:
a) y(n) = x(n)cos(w0n).
Page 2 of 12
October University for Modern Sciences and Arts
≠ (2)
Linear
T{a1x1[n]+a2x2[n]}
= (a1x1[n]+a2x2 [n]) cos(w0n) …………(1)
a1T{x1[n]}+a2T{x2 [n]}
=a1x1[n] cos(w0n) + a2x2 [n] cos(w0n) …………..(2)
(1)=(2)
Stable
Suppose x[n]=C δ[n], y[-1]=0,
x[n]=C at n=0, and x[n]=0 otherwise (bounded input)
For any value of the input, |cos(x[n])|≤1,
Then the output is bounded, the system is stable.
y(0) = x(0)cos(0) = 1 × 1 = 1
y(1) = x(1)cos(w0) = 0 × cos(w0) = 0
y(2) = x(2)cos(2w0) = 0 × cos(2w0) = 0
b) y(n) = x(-n+2).
Page 3 of 12
October University for Modern Sciences and Arts
Linear
T{a1x1[n]+a2x2[n]}
= (a1x1(-n+2)+a2x2(-n+2)) …………(1)
a1T{x1[n]}+a2T{x2 [n]}
=a1x1(-n+2) + a2x2(-n+2) …………..(2)
(1)=(2)
Stable
Suppose x[n]=C δ[n], y[-1]=0,
x[n]=C at n=0, and x[n]=0 otherwise (bounded input)
For any value of the input, |cos(x[n])|≤1,
Then the output is bounded, the system is stable.
y(0) = x(0+2) = 0
y(1) = x(-1+2) = x(1) = 0
y(2) = x(-2+2) = x(0) = 1
y(3) = x(-3+2) = x(1) = 0
Page 4 of 12
October University for Modern Sciences and Arts
x[n]
z-1 z-1 z-1
y[n]
+ +
1/3
z-1
Fig. 1
Solution:
Page 5 of 12
October University for Modern Sciences and Arts
Page 6 of 12
October University for Modern Sciences and Arts
Page 7 of 12
October University for Modern Sciences and Arts
x[n] y[n]
h[n]
Solution :
x(n) = {l, -2, 3}, h(n) = {0,0, 1,1,1}
y(0) = 0 × 1 = 0
Page 8 of 12
October University for Modern Sciences and Arts
Page 9 of 12
October University for Modern Sciences and Arts
Page 10 of 12
October University for Modern Sciences and Arts
y(6) = 1×3 = 3
Page 11 of 12
October University for Modern Sciences and Arts
y(7) = 0
so
y(0) = 0 × 1 = 0
y(1) = 0×1+ 0×-2 = 0
y(2) = 1×1 + 0×-2 + 0×3 = 1
y(3) = 1×1+ 1×-2 + 0×3 + 0×0 = -1
y(4) = 1×1 + 1×-2 + 1×3 + 0×0 + 0×0 = 2
y(5) = 1×-2 + 1×3 + 1×0 + 0×0 + 0×0= 1
y(6) = 1×3 = 3
y(7) = 0
Page 12 of 12