DSP Practice Problems 1
DSP Practice Problems 1
@) x(n) =48(n)
() x(n)=8(n—ng), O0<ng<N
() x(n)=ad", 0<n<N-1
1 neven
® "‘""{0 nodd, 0<n<N-—1
Suppose we have two four-point sequences x[n] and k[n] as follows:
mn
x[n] = cos(T) . w=10,1,23
w(n)=0.42—0.5c05%+0.08cos
2 4 == 0O<n<N-1
N-1
Consider a finite-duration sequence
(b) Determine the sequence y(n) with six-point DFT Y (k) = %|X (k)|.
(¢) Determine the sequence v(n) with six-point DFT V (k) = 3| X (k).
A linear time-invariant system with frequency response H(w) is excited with the
periodic input
Suppose that we compute the N-point DFT Y (k) of the samples y(n),0 <n < N—1
of the output sequence. How is Y (k) related to H(w)?
x[n]
The two eight-point sequences x[n] and x[n] shown in Figure P10 have DFTs X |[k] and
X [k], respectively. Determine the relationship between X |[k] and X »[k].
i
s xi[n]
T
A f—an
f—
l. ..
—es
3
ce
-
.
8 " Figure P10
10 Consider the real finite-length sequence x[n] shown in Figure P23.
4 x[n]
[N}
Il
- - -
2 -1 0 1 2 3 4 5 6 ™ Figure P23
Y (k] = WX [K1,
11 Figure P11 shows two finite-length sequences xj[n] and x;[n]. Sketch their six-point circular
convolution.
s 6 x,[n) x[n]
i1 [
2 3 1 1
Figure P11
12 Figure P15-1 shows two sequences xi[n] and x2[n]. The value of x3[n] at time n = 3 is
not known, but is shown as a variable a. Figure P15-2 shows y[n], the four-point circular
convolution of xi[n] and x;[n]. Based on the graph of y[n], can you specify a uniquely? If
so, what is a? If not, give two possible values of a that would yield the sequence y[n] as
shown.
2 xy[n]
Xa[n]
H—OL L—e—o——
-1 01 2 3 45 Figure P15-1
[1 ]
1 1 yln]
—
4 l 3 4 5
=1 =1 Figure P15-2
13 Consider the finite-length sequence x[n] in Figure P13. The five-point DFT of x[n] is denoted
by X [k]. Plot the scquence y[n] whose DFT is
YK = w5 X [k].
14
2 -l Lyl I 2 4 5 6 7
Figure P17 shows two finite-length sequences x;[r] and x[n]. What is the smallest N such
n Figure P13
that the N-point circular convolution of x;[n] and x3[n] are equal to the linear convolution
of these sequences, i.e., such that x;[n] @ x2[n] = x1[n] * x2[n]?
3 xy[n]
Figure P17
15 Consider two sequences x[n] and h[n],and let y[n] denote their ordinary (linear) convolution,
y[n] = x[n] * h[n]. Assume that x[n] is zero outside the interval 21 < n < 31,and h[n] is zero
outside the interval 18 < n < 31.
(a) The signal y[n] will be zero outside of an interval N; < n < N,. Determine numerical
values for Ny and N».
(b) Now suppose that we compute the 32-point DFTs of
wm= [0 m=01..2
W= xn] n=2
and
0 m=01...17
h'["I=lhln] n=18,19,...,31
(i.e., the zero samples at the beginning of each sequence are included). Then, we form
the product Y{[k] = X;[k]H[k]. If we define y;[n] to be the 32-point inverse DFT of
Y [k], how is y;[n] related to the ordinary convolution y[z]? That is, give an equation
that expresses yj[n] in terms of y[n] for 0 <n < 31.
(¢) Suppose that you are free to choose the DFT length (N) in part (b) so that the sequences
are also zero-padded at their ends. What is the minimum value of N so that y[n] = y[n]
for0O<n<N-1?