Академический Документы
Профессиональный Документы
Культура Документы
DR
AF T
y (n) =
DR
Sami Arca
AF T
h (n) , n = 0 . . . M 1 g (n) , n = 0 . . . N 1 .
n
h (k) g (n k) ,
k=0 n
0n M1
k=nM+1 N1
h (k) g (n k) , M n N 1
k=nM+1
h (k) g (n k) , N n N + M 2 0, elsewhere .
Complex Convolution Find complex convolution, V (z), of the following z-transforms. X (z) =
where is the integration contour and must be chosen within the intersection of region z of convergence of X and Y (w). w
DR
Sami Arca
AF T
|z| 1 , Y (z) = |z| V (z) = 1 2 j X
z z1
2z 2z 1
1 . 2
z Y (w) w1 dw w
EEM 409 Digital Signal Processing Midterm Exam EEM 409 Digital Signal Processing Midterm Exam QUESTIONS Q1.
-3
AF T
xq
2.25 0.75 1.5 3 -1.5
x(n)
Quantizer
x q (n)
-0.75 -2.25
codes 00 01 10
4 1
7 -0.8
x (n)
-2.1
-0.3
1.85
0.8
1.8
-1.2
2.25 11 Find xq (n) and total number of bits to represent xq (n). Q2. n x (n) Q3. n
0 2
1 1
2 3
4 2
5 1
6 3
7 2
DR
-1 0 1 1 2 2 2 3 1 4 1 5 2 6 2 7 1 x (n) Q4. X (z) = 4z , (4z 1)2 Sami Arca
Calculate Fourier Transform of the signal at 8 points and plot magnitude and phase of the transform.
1 4
Find x (n) using inverse z-Transform formula. Good Luck Sami Arca
EEM 409 Digital Signal Processing Final Exam EEM 409 Digital Signal Processing Final Exam QUESTIONS Q1.
-3
-1.5
2.25 1 Find xq (n) and codes assigned to the samples. Find total number of bits to represent xq (n). Q2. n 0
DR
1 2 3 4 Q4. X (z) = sion method. Sami Arca
X(6 k) = X (k) x (n) 2 1 -1 1 -2 Q3. Calculate magnitude and phase of the following discrete Fourier transform. 2 X (k) = ej2k/3 2 cos k 1 + j 4 sin k , k = 0, . . . , 5 3 3
Find x (n), a) using inverse z-Transform formula, b) using partial fraction expan-
AF T
xq
2.25 0.75 1.5 3
x(n)
Quantizer
x q (n)
-0.75 -2.25
4 1
x (n)
-2.1
-0.3
1.85
0.8
1.8
-1.2
-0.8
1 1 + , 1 1 0.5z 1 0.5z
Good Luck
DR
Sami Arca
AF T
Sami Arca 6
Q1) Frequency response of a linear shift invariant system is given as sin () . 1 + cos ()
Q2)
Q3) Let X () be the Fourier Transform of x (n) = (1/2)n u (n). Let Y (k) be DFT with N = 4 samples of a nite-length signal y (n). We set
DR
Determine y (n). Q4) Find z-transform of x (n) = 1 2
|n|
Sami Arca
AF T
H () = j
Im [z]
Y (k) = X () |=2k/4
k = 0...3 .
Good Luck.
EEM 409 Digital Signal Processing EEM 409 Digital Signal Processing - December 19, 2003
QUESTIONS
Q1) Draw diagram of radix-2 FFT algorithm for 4 points. Find FFT of x = [1, 2, 4, 2].
Q3) Design half band low pass discrete-time lter using Fourier series method. Choose lter length as 7 and use hamming window. (Hamming window: 0.54 + 0.46 cos 0
DR
Q4) Find z-transform of x (n) = 1 2
n
AF T
y = [2, 3] w (n) = N1 2n , |n| N1 2 otherwise
l = 0, . . . . 9
ANSWERS
A1) Consider that discrete Fourier transfor of sequence g (n) is Gk . Sami Arca 8
N/21
g0 g1 g2 g3
DR
y1 -1 W1
x0 = 5, x1 = 0, y0 = 3, and y1 = 4. G0 = x0 + x1 G2 = x0 x1 Sami Arca
AF T
n=0
Gk =
gn + gn+N/2 W kN/2 W kn , k = 0, 1, . . . , N 1
xn = gn + gn+N/2
yn = gn gn+N/2
N/21
G2l =
ln xn WN/2 ,
l = 0, 1, . . . , N/2 1
G2l+1 =
ln (yn W n ) WN/2
x0 x1
G0 G2 G1 G3
y0
-1
-1
W0
-1
=5 =5
G1 = y0 + W y1 = 3 + j4 G3 = y0 W y1 = 3 j4 9
A2) Length of x (n) and x (n) are N = 2 and M = 2 respectively. a (n) = x (n) y (n). Length of a (n) is N + M 1 = 3.
1
DR
X (0) = 3 A (0) = 3 A (1) = 4.5 6.0622 j Inverse DFT of A (k) gives, Sami Arca
Y (0) = 1 Y (1) = 2 3ej2/3 = 2.5 + 2.5981 j Y (2) = 1 + 2ej4/3 = 2.5 2.5981 j A (2) = 4.5 + 6.0622 j
AF T
X (k) = Y (k) = x (n) ej(2/3)nk , k = 0, 1, 2.
n=0 1
y (n) ej(2/3)nk ,
k = 0, 1, 2.
n=0
k = 0, 1, 2.
A (k) e j(2/3)nk ,
n = 0, 1, 2.
X (k) = 1 + 2ej(2/3)k
Y (k) = 2 3ej(2/3)k
DR
Sami Arca
AF T
/2 < || < lZ 11
1, H () = 0, H ( + 2 l) ,
|| /2
EEM 409 Digital Signal Processing Final Exam EEM 409 Digital Signal Processing Final Exam - January 19, 2004
QUESTIONS
Q1) Derive in frequency FFT algorithm and draw block diagram of 4 points. Find FFT of x = [1, 2, 4, 3] using the algorithm.
Q2) The response of an LTI system to input x (n) is y (n). DFT of the input and output signals are X = [2, 3 + 5i, 8, 3 5i] and Y = [12, 4 16i, 16, 4 + 16i] respectively. Find impulse response h (n) of the system.
Q3) The characteristics of an ideal high pass lter is given as, 0, 0 || < 2/3
. Design this lter using Fourier series method. Choose lter length as 7 and use hamming window. (Hamming window:
DR
0 ) Q4) Find z-transform of x (n) = A W l , 1 2
n
Q5) Impulse response of a continuous time system is given as, cos ( t/4) , 0, |t| 4 otherwise
Sami Arca
AF T
H () = 1, 2/3 || < w (n) = 0.54 + 0.46 cos N1 2n , |n| N1 2 otherwise h (t) =
EEM 409 Digital Signal Processing Final Exam approximation of the system by using impulse invariance method.
. Find impulse response hA (t) of the system. Using impulse invariance method, nd impulse response, hD (n), and system function, HD (z) of discrete time approximation of the analog system. The sampling period is T .
DR
Sami Arca
AF T
N
HA (s) =
k=1
13
Find impulse response of the system by using partial fraction expansion method.
Q3) Find 33 DFT matrix and calculate DFT of x (n) = 3 (n)+ (n 1)+2 (n 2) by using the matrix representation of DFT.
Q4) Design a low-pass lter using Fourier Series method. The bandwidth of the lter is /2 and the length is N = 5. Employ Blackman window,
DR
to reduce ringing eect. Sami Arca
AF T
y (n) 2y (n 1) + y (n 2) = x (n) . H (z) = 2z2 + 16z 12 . z3 5z2 + 6z 2n N1 4n N 1 + 0.08 cos , n= , , , N 1 N1 2 2
14
Q2) Design half band low pass lter by using 2rd order butterworth approximation.
Q3) Find Fourier transform and energy spectrum of x (n) = 1/ 6 (n)+2/ 6 (n 1) 1/ 6 (n 2).
Q4) x (n) = cos (0.1 n/3) + cos (0.1n) is given. This signal is an input to an LTI lter with impulse response h (n) = a (n) + b (n 1) + a (n 2). The output of the lter is y (n) = cos (0.1n). Find lter coecients.
Q5) Sampling frequency of a discrete signal is increased twice by digital interpolation; y (n) = xup (n) h (n), where
DR
and h (n) is a half band digital lter. Sami Arca
Let x (t) = cos (2t). Sample this signal with sampling frequency f s = 5Hz (sampling
period T s = 1/ f s = 0.2 sec.) and obtain x (n). Using the digital interpolation method and h(n) = 1/ 2 (n) + 1/ 2 (n 1) nd interpolated signal y (n). Calculate y (n) for n = 0.1 (2k + 1) sec, where, k = 0, 1, 2, 3, 4.
AF T
xup = x(n/2), n = 0, 2, 4, . . . 0, otherwise 15
1. MATLAB implementation of Decimation in Time (DIT) Radix-2 FFT (see http://cnx.rice.edu/content/m12016/latest). 2. Design half band low pass lter
(a) by using Fourier series method (length N = 11). Employ Blackman window.
and http://www.stanford.edu/class/ee102b/lectures/lecnotes13.pdf ).
3. Find Fourier transform (X () and energy spectrum (X () X ()) of audio signal http://www.members.tripod.com/ buggerluggs/wavs/hello.wav. Calculate Fourier transform at 8192 points.
4. Output of an LTI system with frequency response of H () for an input signal x (n) = cos (a n) + cos (b n) is y(n) = H (a ) cos (a n) + H (b ) cos (b n) .
DR
tion; y (n) = xup (n) h (n), where xup = 0, and h (n) is a half band digital lter. Sami Arca
Let h (n) = F ( 1) [H ()] = a (n) + b (n 1) + a (n 2). Find h (n) such that y (n) = h (n) x (n) = cos (a n). a = 0.1/3 and b = 0.1 .
Let x (t) = cos (2t). Sample this signal with sampling frequency fs = 5Hz
AF T
x(n/2), n = 0, 2, 4, . . . otherwise
interpolation method and one of the halfband lters designed in Q2, increase the
6. Let x (n) = xa (n) + xb (n). xa (n) = cos (0.1n) and xb (n) = 2 sin (0.01n). Here xb (n) is unwanted signal which shift the base of xa (n), therefore it is called trend of x (n). We want to remove the trend. Use the linear trend removal algorithm:
remove the linear trend from the k th segment; yk (n) = xk (n)anb, n = 0 . . . N 1. y (n) =
For this example choose N = 5 and remove the trend of x (n) for n = 0 . . . 299.
DR
Sami Arca
AF T
xk (n kN), where xk (n) =
k k
17
EE597 Discrete Signal and System Analysis Midterm Exam EE597 Discrete Signal and System Analysis Midterm Exam QUESTIONS
A linear time-invariant and causal system which is described by y (n) (a + b) y (n 1) + ab y (n 2) = c x (n 2) where |a| < 1 and |b| < 1 is given.
DR
Sami Arca
AF T
18
EE597 Discrete Signal and System Analysis Midterm Exam EE597 Discrete Signal and System Analysis Midterm Exam QUESTIONS
y (n) 2a y (n 1) + a2 y (n 2) = a x (n 1) where a = 0.5, is given. Q1. Find the impulse response of the system using time-domain analysis. Q2. Find the the frequency response of the system.
Q5. Transfer function of a linear time-invariant system is given as following. Find input-output relation in time domain. Check if the system is causal and stable. 2z 0.25
DR
Sami Arca
AF T
H (z) = z2 19
Q1) Design a low-pass lter using Fourier Series method. The bandwidth of the lter is /3 and the length is N = 5. Employ Hamming window,
Q2) A sequence of symbols are given ; {a, b, b, c, a, c, b, c, c, b}. The following codes are assigned to the symbols.
a) Find probability of symbols a, b, c. b) Calculate information of the symbols and entropy of the sequence. c) What is the average code length (bits/symbol)?
DR
formula. X (z) = Recall : 1 2 j F (z) dz = Res = q
k
Q3) Find inverse z-transform of the following z-transform using the inverse z-transform z , |z| > 1 (z 1)2
Sami Arca
AF T
2n , N1 n= N1 N1 , , , 2 2 a, 00 b, 01 c, 1 Res q
k
20
EEE 409 Digital Signal Processing Midterm Exam Q4) Numeric approximation of integral of x (t) is,
y (n) =
This equation can be considered as a discrete-time system. Find a) the system response, b) the frequency response of the system.
ANSWERS
A1)
DR
0
Sami Arca
AF T
n k=
x ((k 1) ) + x (k) 2
= y ((n 1) ) +
x ((n 1) ) + x (n) 2
y (n) = y (n 1) +
x (n 1) + x (n) 2
/3
g (n) =
1 2 1
jn
1 dw + 2
0
e jn dw
/3
/3
cos (n) dw
1 sin (n/3) n
A2)
DR
Sami Arca
AF T
h (0) = 0.3333 h (1) = 0.1489 h (2) = 0.0110 p (a) = p (b) = p (c) = 2 10 4 10 4 10 I (a) = log2 (p (a)) = 2.3219 I (b) = log2 (p (b)) = 1.3219 I (c) = log2 (p (c)) = 1.3219 22
Coded sequence : 00 01 01 1 00 1 01 1 1 01
A3)
DR
Res2 = 1 z = 0, F (z) = zm Resm = 0 Sami Arca
For n = m and m > 0 there is two poles at z = 0 and at z = 1. Consider pole at 1 (z 1)2
AF T
H = p (a) I (a) + p (b) I (b) + p (c) I (c) = 1.5219 bits A = 16 62+41 = = 1.6 10 10 x (n) = = 1 2 j 1 2 j X (z) zn1 dz zn dz (z 1)2
F (z) =
zn (z 1)2
= m 23
EEE 409 Digital Signal Processing Midterm Exam Consider the pole at z = 1,
A4)
DR
= = = For continuous case,
t
Sami Arca
AF T
Res2 = 1 1 d m (z 1)2 F (z) = lim m+1 = m lim z1 dz z1 z 1! Resm + Res2 = 0 0 1 x (n) = nu (n) Y (z) = z1 Y (z) + z1 X (z) + X (z) 2 H (z) = Y (z) 1 + z1 = 2 1 z1 X (z) H () = H (z) 2 2 ( j) cot () 2 z = e j 1 + ej 1 ej ej/2 2 cos () ej/2 2 j sin () y (t) = x () d
24
results with
Using this relation it is possible to transform a continuous time system to a discrete time system. This transformation is called as bilinear transform.
DR
Sami Arca
AF T
s= 2 1 z1 1 + z1 25
H (s) =
1 s
Q1) Design a high-pass lter using Fourier Series method. The passband of the lter is [/2, ] and the length is N = 5. Employ Hamming window,
Q2) A sequence of symbols are given ; {0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 0, 0, 2, 2}. The following codes are assigned to the symbols. 0, 000 1, 001 2, 1
a) Find probability of symbols 0, 1, 2, 3. b) Calculate information of the symbols and entropy of the sequence. c) What is the average code length (bits/symbol)?
DR
expansion method. X (z) = 2 H (s) H (s) = Sami Arca
Q3) Find inverse z-transform of the following z-transform using the partial fraction
where H (s) is the system function and a is the bandwith of the lter in rad/sec. First 26
AF T
2n , N1 n= N1 N1 , , , 2 2 3, 01 z (4 z 3) , (2 z 1) (4 z 1) |z| > 1 2 1 + (1) s a
2n
EEE 409 Digital Signal Processing Final Exam order Butterworth lter is,
since the pole s = a resides in the left side of the s-plane. Using bilinear transform; 2 1 z1 T 1 + z1
nd discrete approximation of the rst order analog Butterwort lter for the bandwith a = 2 rad/sec and sampling interval T = 2 sec. Employ pre-warping; a T 2 arctan T 2
DR
lter. Sami Arca
where d is discrete equivalent of analog frequency a in rad/sec. To avoid warping 2 a T in H (s). First nd discrete equivalent H (z) a should be replaced by arctan T 2 of H (s) using the bilinear transform and then write dierence equation of the discrete
AF T
H (s) H (s) = 1 = s 1 a 1 1 s s 1+ 1 a a
2
H (s) =
1+
s a
s=
d =
27