



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




ENGR 361: Digital Signal Processing Midterm 1
Friday, September 21
th , 2007
Open books, notes, computer
Name: SOLUTION
1 f = 500 Hz, is sampled at the
sampling frequency 10000 s F = Hz.
1
sin
sin 10000
sin 20
a
s
x n x nT
f n
n
n
To find the period
2 2 1 20
20
n k k
b) (^2)
[ ] 0.763cos 0.324 cos 3 5
n n x n
1
2
n k k
n k k
π π
π π
time-invariant, 4) linear, and 5) memoryless.
3 y n [ ] = x n [ ]
3 3 3 ax n 1 [ ] + bx 2 (^) [ ] n ≠ ax n 1 [ ] + bx 2 [ ] n
b)
2
0
k
=
= + (^) ∑ − where α is a non-constant.
1 2 1 2 0 0 0 0
k k k k
α a x n k α b x n k α a x n k b x n k = = = =
a) If the system h n [ ] can be described by the following differential equation
y n [ ] = x n [ ] − 2 [ x n −1] − 3 [ x n − 2] + x n [ − 3], draw the discrete-time signal of
h n [ ] with appropriate indexing.
-2 -1 0 1 2 3 4 5
0
1
2
3
4
h[n]
index
b) Find the output y n [ ] and draw the figure with appropriate indexing.
y n = x n ∗ h n
-6 -4 -2 0 2 4 6
0
2
4
6
y[n]
index
clear all;clc;close all;
B = [1 2 0 1]; A = [1 -0.5 0.25]; x1 = zeros(1,200);x1(1) = 1; x2 = ones(1,200);
y1 = filter(B,A,x1); y2 = filter(B,A,x2); subplot(211);stem(y1,'.'); subplot(212);stem(y2,'.');
0 20 40 60 80 100 120 140 160 180 200
0
2
4
6
0 20 40 60 80 100 120 140 160 180 200
0
1
2
3
n n x n u n u n
, the system generates the output and its z-transform is
1 1
1 1 1
z z Y z
z z z
− −
− − −
.
a) Determine X z ( ), Y z ( ) , and H z ( ).
1 1 1
1 (^1 1 )
1 1
1 1 1
1 1 1 1
1 1 1 1 1
1
1
z z z
X z z z (^) z z
z z Y z
z z z
z z z z H z
z z z z^ z
z
z
− − −
− − (^) − −
− −
− − −
− − − −
− − − −^ −
−
−
1 3 z
−
b) Draw ROC for X, Y, and H.
c) Find the impulse response of the system h n [ ]. Is the system stable?
ROC does not include a unit circle, so it is not stable.