Lines = result from dimpulse; stems = results from analytical calculation.Unit sample response: num chosen for freqz.. Lines = result from dimpulse; stems = results from analytical calcu
Trang 1Digital Signal Processing
Solutions Manual
Thomas J Cavicchi Grove City College
John Wiley & Sons, Inc.
© 2000
Trang 2
http://www elsolucionario.blogspot.com
LIBROS UNIVERISTARIOS
Y SOLUCIONARIOS DE MUCHOS DE ESTOS LIBROS
LOS SOLUCIONARIOS CONTIENEN TODOS LOS EJERCICIOS DEL LIBRO RESUELTOS Y EXPLICADOS
DE FORMA CLARA VISITANOS PARA
Trang 3Digital Signal Processing
Solutions Manual Thomas J Cavicchi Table of Contents
Begins on page
Chapter 2 1
Chapter 3 50
Chapter 4 120
Chapter 5 220
Chapter 6 283
Chapter 7 408
Chapter 8 494
Chapter 9 582
Chapter 10 658
Note from author to instructors:
I will place corrections and/or improvements to these solutions on my Web page for this book.
To view these, you will need the following login and password:
password: kh7yb2q5 login: faculty
If you have corrections, comments, or suggestions, please email me at the address also shown on the main webpage for this book.
Trang 8α β
Trang 10
Trang 12
Trang 14
0 5 10 15-0.05
Trang 17Trang 21
B
Trang 28
0 1 2 3 4 50
0.20.40.60.81
Trang 320 20 40 60 80 100-2
Trang 420 10 20 30 40 50 -0.5
* stems = result of filter w/conv to neg z powers.
O stems = res of dlsim; + = res of dimpulse;
Trang 480 10 20 30 40 50 -1
-0.5
0 0.5
1 1.5
Trang 49O = discretized RL with dt = 0.002 sec
x = solution points using dlsim;
Trang 58Trang 60-2 -1
2 -2
-1012-2
0246
2 -200
-100 0 100 200
Trang 612 -4
Trang 63-1.5 -1 -0.5 0 0.5 1 1.5
0.536
0.429
0.214 0.322
"1
Trang 64
-1.5 -1 -0.5 0 0.5 1 1.5 -1.5
-1 -0.5 0 0.5 1 1.5
0.321 0.107
-1.07
-0.643
1.07
0.643-"
Trang 65-1.5
-1 -0.5
0 0.5
Trang 66-1.5 -1 -0.5 0 0.5 1 1.5 -1.5
-1 -0.5 0 0.5 1
1.5 |z|^2 + 2ang(z) - jang(z)cos(4|z|) (analytic nowh Solid = |w(z)|, - = angle{w(z)} where
Trang 85Trang 94
0 5 10 15 20 25 30-80
* stems = result from "filter" w/conv to neg z powers
Stairs = dlsim result; O stems = direct calc;
Trang 960 0.5 1 1.5 2 2.5 3 3.50.5
Trang 980 0.5 1 1.5 2 2.5 3 3.50.5
11.5
Trang 106
Trang 108
0 5 10 15 20 25 30 -3
-2 -1 0 1 2 3 4 5 6
Trang 1100 20 40 60 80 100 -100
-50
0 50
Trang 1150 0.5
1 1.5
2 2.5
3 3.5
4 4.5
Trang 117Lines = result from dimpulse; stems = results from analytical calculation.
Unit sample response: num chosen for freqz.
Lines = result from dimpulse; stems = results from analytical calculation.
Unit sample response: num chosen for dimpulse.
Trang 1190123456
Trang 127! *$ !&*+ &*' *( &'( &) "&$ $
*( &'$ !&*+ &*'$(O*)/J $
Trang 128TT 'O$# * &5 * &
Trang 1320 0.5 1 1.5 2 2.5 3 3.50
0.511.522.533.54
Trang 133!*+&+(*$& &! =$ $& #) (#&'! *
Trang 1340 1 2 3 4 5 6 0
0.5 1 1.5 2 2.5 3
Trang 138)$$& <* &"$&! *) +8=R&$.+ &
"& +$'!))U $2# &
Trang 139-0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 0.08 -0.4
Trang 146.$ "(##& $F & !D!D#& $)$'*
!&).$ "(#O#&) )*F & !'+'
# .$ (D#*DF & !)'$
Trang 149.$ "(#O#& $F & !D!D#& $)$'*
!& ) P + && $ " (& !* ''(2 &
MA37/'$AO'<* '+$'<*!"J#
.$ ##2( &"$&('$ ' *!&*
O *$ (#&)$#$ #& &# $* (#
* &'<*" &# ) "'($ $ "(##&
Trang 150101 102 103 104 105 106
-90 -180
0 90
Trang 152
$* # P)*&$)+*$ + '& $$
<* &" & & )# ' &! *'& $$
&! *''$ ''*&&F+( *$ = , #)$$$ &"'& $# !
Trang 154$$( * #$ #&'&&)=$ $( *
+'*' $#$ '*'4 &#&$
Trang 1550.4Truncated digital high-pass filter unit sample response; M = 3.
Trang 1560 50 100 150 200-4
-3-2-101234
0.4Truncated digital high-pass filter unit sample response; M = 100
Trang 157-1.5
-1-0.5
00.5
11.5
Trang 1580 20 40 60 80 100 -1.5
Trang 159$ &(
Trang 161|X(exp(j2pif)| where x(n) = [ln(a)^n]/n!, where a = 0.05.
-$#&!&).$) #&(*& *&"$&'(
$" !*$.$'$&'(2#+'8& # &&")$$*&!$ +$( */
'(#&# !1 &&"$'& ## ! $$# '&
Trang 1620 5 10 15 20 0
Trang 1683000 3050 3100 3150 3200-1
Trang 170Ω
θ
Trang 174-1 0 1
Trang 175-0.1
0 0.1
Trang 1770 100 200 300 400 5000
0.10.20.30.40.50.60.70.80.91
Trang 1840 5 10 15 20 25 30 0
Trang 190% ' '1'$ ?*C..!(?($1?
) %+& "% *$. 'X %:*
Trang 191-1-0.8-0.6-0.4-0.200.20.40.60.81
Trang 1920 5 10 15 20 25 30 35 40 -1
Trang 2000 20 40 60 80 100 120 140 -0.8
* stems = closed-form result.
O stems = Re{ifft calc of Hilbert trans unit sample resp.};
Trang 201* stems = closed-form result.
O stems = Im{ifft calc of Hilbert trans unit sample resp.};
Trang 2020 20 40 60 80 100 120 140 -1.5
Trang 2080 0.5 1 1.5 2 0
Trang 20900.10.20.30.40.50.60.70.80.91
Trang 2100 0.5 1 1.5 2 0
Trang 215!"1Q:G) 75*$% 3$!+N+;H/""F >$%& ' ".$ & ! $* -$ -
Trang 2164."$ % ! %$ * ' % '+%" &%% $ &!* *" &$%7 **'
". 7%"%$ !!& " $.!"
'$ &%% $ $ #$" '-$*?%
".+ ! % =""" &!-* " * ' &%% $ "!-7 !& ' "$ %
7 7 =* '"7 -!!&". ' &% % $ " "$ % " *" * !& "* ?%
Trang 217."% "'%1&#$% +()555 =$ %
> +Z+1+//H+2%+N
&% % $ -* %& " "
*. '*'" !& !&"&.-1&#$!%$ &%% $ $ #$ *
"$ % "' *!&? ' "% -' %4
$ " . " - %* !&+ *
' % $% +% $.& *-*; *
'"E4 : F% $+%1&#$ *$ -M7+ : $. !$
Trang 218% $%'"* & < : %*".
) % & % * 7 **"$ % $%
"$ % " %.7 -! * -! ' % $ '5%%. *" *!&%$
" ' &*
Trang 22806)2)D4
Trang 2290 0.1 0.2 0.3 0.4 0.50
200400
600Solid = exact expn for Y(exp(jw)); = DFT{zero-padded y(n) = nx(n)}
x(n) = [u(n)-u(n-30)]
0 0.1 0.2 0.3 0.4 0.5-4
-2024
Trang 2330.6 0.8 1 1.2 1.4 1.6 1.8 2 2.2
< yc(0) = 0 and yc`(0) = -4, which check.
Trang 2360 20 40 60 80 100 -1
Trang 2375 10 15
0 0.5 1
0 0.5 1
Trang 2420 5 10 15 20 25 30 35 0
Trang 2430 2 4 6 8
Trang 2500 5 10 15 20 25 30 35 40 -6
Trang 251-6-4-20246
Trang 256? 4 . \1*? '
Trang 258(b) Note that the first difference of the given x(n) is zero for n = 0, 1 for n
[1, M-1], and zero otherwise, except for -(M-1) at n = M Thus the DFT of thefirst difference, by direct evaluation of the DFT sum (using geometric sumidentity) and subtracting off the n = 0 term and adding on the n = M term:
except the denominator is squared However, the result of part (a) multiplies
calculation or use of the property gives the same result for the DFT of the firstdifference of x(n) Matlab plots using "fft" and using the analytical resultindeed show that the result obtained by numerically computing the DFT sum are thesame as the analytical result in (*) that does not require computing a sum
Trang 259O stems = fft result; * stems = analytical result.
Mag of DFT of first difference of discrete-time finite-dur ramp.
Trang 313Al i asi ng of spectrum of boxcar (T = 1 s) for dt = 0.1 s.
norm al i zed radi an frequency (rad/sam pl e)
Trang 314Anal og frequency W correspondi ng to sam pl es (rad/s)
Sam pl ed | FT{tri angl e}| : T = 1 sec, L = 4, N = 64, dW = 2pi (0.125 Hz)
Trang 334by the sampling property of the Dirac delta function (as applied to
convolution with a shifted Dirac delta) Thus,
exist in practical reality However, we can mimic its effects by recalling
Thus, we could form a finite-valued, finite-width "impulse" train, whose
sampling circuit with electronic switching could approximate this time signal, which in turn could perfectly well be filtered by the analog
= sinc(Bt/)t), but the above results are valid for a general analog filter
From the convolution theorem and formula 20 (i)in Appendix 4A, any T-periodicfunction g(t) having nonzero dc value [so that G(k=0) is nonzero] multiplyingx(t) can be used for “sampling“ x(t), except that the notion of “samples” ismuddled if that function is not a narrow-width-pulse train (see, e.g., R E.Zeimer, W H Tranter, D R Fannin, “Signals and Systems: Continuous and
produces a replica of the spectrum of x(t) at intervals equal to the
fundamental frequency of g(t) the zero-centered replication and thus can thus be extracted by lowpass filtering x(t)g(t)
x(t) We thus do not really need the pulse-width extremely small unless we want toreally call it reconstruction from true samples alone [as opposed to
reconstruction of x(t) from segments of x(t)] The height of the pulses iseven less important, as it can of course be absorbed into the passband gain ofthe LPF The on/off-multiplication of the narrow pulse train can be easilyimplemented using electronic switching Note, however, that the zero-orderhold does CANNOT be used for ideal reconstruction, for it distorts the zero-centered (baseband) spectrum (see Fig 6.16b,c) The reason is that the ZOHamounts to a time-domain convolution {see (6.11)] rather than a time-domainmultiplication, so in the frequency domain we have a distorting multiplication
of the baseband spectrum
331
Trang 335
involves all orders (powers of t in the Taylor series expansion) Hence thecentral difference formula cannot be a true second differentiator for
characteristic that holds for most functions when )t is small
(d) The frequency response of this system is [see (9.34) - (9.35) for theproof],
evaluated at the input (digital) frequency
second derivative of the sine function is a scaled version of the sine
function
332
Trang 3366.39) (a) Let z = x+jy, and of course assume )t > 0 Then with
s = (z-1)/(z)t) = F+jS,
we know F < 0 iff Re{(z-1)/z} < 0, or Re{[x-1+jy]/[x+jy]} < 0,
adding and subtracting ¼ to complete the square (and noting the denominator isalways $ 0),
This inequality describes a disk centered on {½,0} with radius ½ This disk
transforms into a stable H(z) Note, however, that the frequency response (jSaxis) is not at all retained (i.e., mapped to the unit circle), except
approximately so for very low frequencies (z near 1) Thus, compared with theBLT, this mapping is not recommended
or
y(n) - y(n-1) = a)t{x(n) - y(n)}
Taking the z-transform,
Trang 337The process generalizes by using the cascade decomposition; each s is replaced
which is the exterior of a circle of radius 1/)t centered on {1/)t, 0} in the
right-half plane (unstable) and H(z) be stable This happens as long as thoseRHP poles are outside the circle of radius 1/)t centered on {1/)t, 0}
Contrast this with the result in part (a) that the left half of the s-planemaps to the interior of the circle of radius ½ centered on {½, 0} in the z-plane
6.40) (a) With s = F + jS = (z-1)/)t, F < 0 translates to
Re{z-1} < 0, or Re{z} < 1
The region Re{z} < 1 has no relation to the unit circle centered on the
into a stable H(z) Therefore, this transformation is usually to be avoided
in the discretization of an analog filter or other analog system [but see part(b)]
With y(n+1) - y(n) = )tx(n) or y(n+1) = y(n) + )tx(n), we have the usual
rectangular rule integration
(b) Solving for z, we have z = 1 + s)t, or
which is the interior of a circle of radius 1/)t centered on {-1/)t,0} Thus,
if all the poles of the analog system are within this circle, the forward
H(z)
6.41) The trapezoidal rule says
Trang 340-0.5
0 0.5
1 1.5
2
Ti m e t (s)
Si m ul ati on usi ng predi ctor-corrector; dt = 0.1 s
-* - = predi ctor-corrector esti m ate of yc(t) sol i d = exact yc(t)
Trang 341Ti m e t (s)
Si m ul ati on usi ng predi ctor-corrector; dt = 0.2 s
-* - = predi ctor-corrector esti m ate of yc(t) sol i d = exact yc(t)
Si m ul ati on usi ng predi ctor-corrector; dt = 0.3 s
-* - = predi ctor-corrector esti m ate of yc(t) sol i d = exact yc(t)
Trang 374* + ,
Trang 380
(
Trang 384@7* N,(:((
Trang 3853 82
Trang 389
3 86
Trang 39138 81> & $("
#
Trang 41140 8
05101520253035
Trang 4134 10
05101520253035
Trang 4154 12
00.5
11.5
22.5
33.5
Trang 4160 5 10 15 20 25 30 35 0
x(n) = n for 0 <= n < N1 where N1 = 32; DFT N = 64; only nonneg freq shown.
O stems = analytically calculated |X(k)|; * stem = |X(k)| calc via "fft" of x(n).
Trang 4174 14
0 100
Trang 4194 16
012345678
Digital frequency f
DFTF def, by analyt calc., by zero-padding, & by interp{DFT}; N = 16, M = 1024
x(n) = triang Stems = |X(k)|; other (identical) curves are: |X(exp(j2pif))| via
Trang 4200 0.1 0.2 0.3 0.4 0.50
/)( & ( ( = * - &*-&/(&(*,%P3MQML& ( ( ' & * 2- (& ( =..&P.2-*(,&+((
Trang 42141 8
0 1 2 3 4 5 6
Stems = |XL(k)| via L-point FFT of L-repetitions-repeated h(n).
Solid = |HL(exp(j2pif))| using property, - = using direct sum calc of DTFT{hL(n)}
...Digital frequency f
DFTF def, by analyt calc., by zero-padding, & by interp{DFT}; N = 16, M = 1024
x(n) = triang Stems = |X(k)|; other (identical) curves are: |X(exp (j2 pif))|... data-page="336">
6.39) (a) Let z = x+jy, and of course assume )t > Then with
s = (z-1)/(z)t) = F+jS,
we know F < iff Re{(z-1)/z} < 0, or Re{[x-1+jy]/[x+jy]} < 0,
adding... data-page="334">
by the sampling property of the Dirac delta function (as applied to
convolution with a shifted Dirac delta) Thus,
exist in practical reality However, we can mimic its effects by