数字信号处理 英文版 课后习题
- 格式:pdf
- 大小:270.92 KB
- 文档页数:15
Chapter 8 Solutions 8.1 The Fourier transform gives the spectrum of this non-periodic signal:Ω-Ω-++=Ω2j j e 25.0e 5.01)(X8.2 The samples for the signal are:The spectrum for the signal is given byΩ-Ω-Ω-++-=Ω4j 3j j e e e 5.0)(X8.3 Ω-Ω-Ω-Ω-∞-∞=Ω-++++==Ω∑8j 6j 4j 2j n jn e e e e 1e ]n [x )(X8.4 The first eight sample values for the signal are shown in the table.The signal contains an infinite number of non-zero samples, but the first 5, shown above, should be sufficient to approximate the DTFT reasonably well.Ω-Ω-Ω-Ω-∞-∞=Ω-+-+-≈=Ω∑4j 3j 2j j n jn e 0039.0e 0156.0e 0625.0e 25.01e ]n [x )(X8.5 The DTFT for x 1[n] isΩ-Ω-∞-∞=Ω-++==Ω∑2j j n jn 11e 3e 21e ]n [x )(XThe DTFT for x 2[n] isΩ-Ω-Ω-∞-∞=Ω-++==Ω∑4j 3j 2j n jn 22e 3e 2e 1e ]n [x )(XThe DTFT for x 3[n] isΩ-Ω-∞-∞=Ω-++==Ω∑2j j n jn 33e 1e 23e ]n [x )(XAll three signals have identical magnitude spectra, shown below.|X(The phase spectra of the three signals differ. They are shown in the figure below. From the DTFT expressions above, it is easy to see that )(X e )(X 12j 2Ω=ΩΩ- and)(X e )(X 12j 3Ω-=ΩΩ-. The first relationship means that the phase for x 2[n] will always be 2Ω less than the phase for x 1[n]. The second relationship means that the phase for x 3[n] is always 2Ω less than the negative of the phase for x 1[n], since X 1(-Ω) produces phases that are the negatives of the phases for X 1(Ω), following the odd phase spectrum rule. Both of these two relationships can be confirmed in the table or the plot, remembering that θ ± 2π = θ.8.6 The samples of the signal are shown in the table:The DTFT isΩ-Ω-Ω-∞-∞=Ω-+-==Ω∑4j 2j j n jn e 866.0e 866.0e 866.0e ]n [x )(X8.7 The period of the signal is N = 10. The sample values are listed in the table:The N = 10 DFS coefficients are given by:510k 2j 410k 2j 310k 2j 210k 2j 9n n10k 2j k e e e e e ]n [x c π-π-π-π-=π-+++==∑= 1|–2πk/5 + 1|–3πk/5 + 1|–4πk/5 + 1|–πkBecause of the symmetry of the spectrum, it is enough to calculate the coefficients for k = 0 to k = N/2 = 5, and to produce the other parts of the spectrum from this data.The magnitudes in the second half of the spectrum are a mirror image of those in the first. The phases in the second half are the negatives of the phases in the first half.|X(8.8 (a) The signal x[n] has the digital period N = 4. Its spectrum can be found using the discrete Fourier series:34k 2j 4k2j 3n n4k 2j k ee2e]n [x c π-π-=π--+==∑= 2 + 1|–πk/2 – 1|–3πk/2(b) The magnitude spectrum appears to repeat every second sample, while the phase spectrum repeats every four samples. The period of both spectra must be the same, so the overall period must be 4. As for all periodic signals, the period of the spectrum matches the period of the signal. 8.9 The signal has a period of N = 4, so the DFS coefficients are given by:24k2j 3n n4k 2j k e1e ]n [x c π-=π--==∑= 1 – 1|–πkSeveral cycles of the spectra are shown in the figures below.(8.10 The spectra for non-periodic signals are produced using the DTFT. The spectra, X(Ω), are smooth, continuous functions of frequency with a period of 2π. They are plotted against digital frequency Ω. If desired, the spectra can be plotted as X(f) versus frequency in Hz, using f = Ωf S /(2π).The spectra for periodic signals having a period N are produced using the DFS. The spectra, c k , are line functions of frequency with a period of N. They are plottedagainst the index k. If desired, the spectra can be plotted against frequency in Hz, using f = kf S /N.For both non-periodic and periodic signals, magnitude spectra are even and phase spectra are odd.8.11 (a) The signal is non-periodic. Its spectrum is given by the DTFT:Ω-Ω-Ω-∞-∞=Ω-++==Ω∑3j 2j j n jn e 3e 2e e ]n [x )(XThe magnitude and phase spectra appear as dashed lines in the figure in part (b). (b) The signal is a periodic version of the signal in (a), with period N = 4. Its spectrum is given by the DFS:34k2j 24k 2j 4k2j 3n n4k 2j k e3e 2ee]n [x c π-π-π-=π-++==∑= 1|–πk/2 + 2|–πk + 3|–3πk/2 The magnitude and phase spectrum are plotted below, dashed lines for the DTFT and solid for the DFS. Note that the DFS samples the DTFT.8.12 The harmonic frequencies are given by f = kf S /N. For f S = 12 kHz and N = 72, the first five harmonics are: 166.7, 333.3, 500.0, 666.7, and 833.3 Hz.8.13 For the first cosine, N/M = 2π/Ω = 2π/(2π/3) = 3, so the period is 3. For the second cosine, N/M = 2π/Ω = 2π/(π/3) = 6, so the period is 6. The lowest common multiple of these two periods is 6, so this is the overall period of the waveform.The signal samples are given by The Fourier coefficients are calculated as:56k2j 46k2j 36k2j 26k 2j 6k2j 5n n6k 2j k e5.0e 5.1e e 5.1e5.03e]n [x c π-π-π-π-π-=π---+--==∑= 3 – 0.5|–k π/3 –1.5|–2k π/3 + 1|–k π –1.5|–4k π/3 – 0.5|–5k π/3 The magnitude spectrum is periodic with period 6. Six spectrum samples cover the range from 0 to the sampling frequency, 4 kHz. Therefore, each point of the spectrum covers 4000/6 = 2000/3 Hz. As a result, k = 3 corresponds to the Nyquist frequency of 2 kHz. Using kf S /N, the two spikes in the spectrum below the Nyquist frequency, at k =1 and k = 2, map to frequencies of 2000/3 = 666.7 and 2(2000)/3 = 1333.3 Hz. Using Ω = 2πf/f S , these analog frequencies correspond to the digital frequencies π/3 and 2π/3 rads. Thespike at the higher frequency is twice the height of the other because its amplitude in the signal is double that of the other component. The other two spikes in the spectrum, at k = 6 – 1 and k = 6 – 2 map to imaged versions of the baseband frequencies.8.14 (a) Since the magnitude spectrum is periodic with period 14, the digital signal is periodic with the same period. (b) Fourteen points of the magnitude spectrum cover the sampling frequency, 16 kHz. Each point covers an interval 16/14 = 1.143 kHz wide. For a 16 kHz sampling frequency, the Nyquist frequency is 8 kHz. The first seven points of the magnitude spectrum cover this range. Three spikes occur within the Nyquist range, at k = 1, 2 and 3, or, using kf S /N, 1143, 2286 and 3429 Hz.(The magnitude spectrum belongs to the signal x[n] = sin(n π/7) + 2sin(n2π/7) +3sin(n3π/7). The digital frequencies π/7, 2π/7 and 3π/7 rads are, for a 16 kHz sampling rate, obtained from the analog frequencies 1143, 2286 and 3429 Hz.)8.15 (a) Since the magnitude spectrum has a period of 24, the digital signal also has a period of 24 samples. (b) Twenty-four samples cover 12 kHz, which means each point of the magnitude spectrum covers 0.5 kHz. The spikes at k = 2, 4 and 9 map to frequencies of kf S /N = 1, 2 and 4.5 kHz. The other three spikes are occur above the Nyquist frequency, at k = 24 –2 = 22, k = 24 – 4 = 20 and k = 24 – 9 = 15. The frequencies that correspond to these values of k are imaged copies of the baseband frequencies. (c) Using Ω = 2πf/f S , the digital frequencies are π/6, π/3 and 3π/4 rads.(The signal whose magnitude spectrum is shown is x[n] = cos(n π/6) + cos(n π/3) + cos(n3π/4).)8.16 The Fourier expansion can be matched to ∑-=π=1N 0k n N k2j k e c N 1]n [x . Since N = 16,n 1622j n1612j n 1612j n 1622j e e 2j 1e 2j e ]n [x πππ-π-+++-=⎪⎪⎭⎫ ⎝⎛+++-=πππ-π-n 1622j n 1612j n 1612j n 1622j e 8e 4j 8e 4j e 881The only non-zero coefficients c k are: c –2 = 8, c –1 = –j4, c 0 = 8, c 1 = j4, c 2 = 8. The other 11 coefficients in each period must be zero. The magnitudes of the non-zero coefficients are 8, 4, 8, 4, 8 and the phases are 0, –π/2, 0, π/2 and 0. The magnitude and phase spectra constructed using this information are shown below. Remember that the sequence of magnitudes and phases repeats every 16 points.8.17 (a)(i) Since 2π/Ω = 14π/(6π) = 7/3, the digital period is 7.(ii) The signal contains the frequency f = Ωf S /(2π) = 30000/7 Hz. For a digital period of 7, each point of the magnitude spectrum covers f S /N = 10000/7 Hz. Since each frequency is represented by kf S /N, a spike occurs in this magnitude spectrum at k = 3. Due to imaging, a second, symmetrically-placed spike occurs at N – 3 = 7 – 3 = 4.(b)(i) Since 2π/Ω = 10π/(3π) = 10/3, the digital period is 10.(ii) The signal contains the frequency f = Ωf S /(2π) = 3000 Hz. For a digital period of 10, each point of the magnitude spectrum covers f S /N = 1000 Hz. Therefore, a spike occurs in this magnitude spectrum at k = 3. Due to imaging, a second, symmetrically placed spike occurs at N – 3 = 10 – 3 = 7.(c)(i) For the first component 2π/Ω = 6, and for the second component 2π/Ω = 16. The digital period is the lowest common multiple of these two periods, or 48.(ii) The signal contains the frequencies f = Ωf S/(2π) = 10000/6 = 5000/3 Hz and f = Ωf S/(2π) = 10000/16 = 625 Hz. For a digital period of 48, each point of the magnitude spectrum covers f S/N = 10000/48 = 625/3 Hz. Therefore, spikes occur in this magnitude spectrum at k = 3 and k = 8. Symmetrically placed spikes occur at N – 3 = 48 – 3 = 45 and N – 8 = 48 – 8 = 40 as a result of imaging.(d)(i) As in part (c), the digital period is 48.(ii) The spikes occur in the same locations as in (c), but the higher frequency spike is twice as tall as the lower frequency spike.8.18 As evidenced by the zeros in the magnitude spectrum, some frequencies are excluded from this signal. The most significant contribution lies at a digital frequency of about 0.1 radian. The exact value is 0.113 radians. With f S = 20 kHz, f = Ωf S/(2π) = (0.113)(20000)/(2π), or about 360 Hz. The next biggest peak occurs at about 0.3 radians. The exact value is 0.336 radians, which corresponds to a frequency of 1070 Hz. Most of the important signal content lies below the fourth zero in the spectrum, at 0.395 radians or 1257 Hz.8.19 The number of points in the DFS spectrum gives the digital period of the underlying signal. The digital period in this case is N = 23. The periodic signal whose magnitude spectrum is shown has a large DC component and contributions at all harmonic frequencies, kf S/N = k(20000)/23 = 869.6k Hz. The first few harmonics are 869.6 Hz, 1739.1 Hz, 2608.7 Hz, …. The amplitudes of the harmonics decrease rapidly with frequency. The fundamental frequency of the signal is 869.6 Hz, so the period of the signal is NT S = 1.15 msec.8.20 (a) Ω-)X5.0(e5.0+Ωj-=(b) For a sampling frequency of f S= 16 kHz, the Nyquist frequency is 8 kHz. A cut-off of 2 kHz corresponds to a digital frequency of Ω = 2πf/f S = π/4 radians. The low pass filter extracts the lowest frequency elements in the signal.(c) Cut-off frequencies of 3 and 6 kHz correspond to digital frequencies of 0.375πand 0.75π radians. The band pass filter extracts the mid-range frequencies.(d) A cut-off of 7 kHz corresponds to a digital frequency of 0.875π radians. The high pass filter extracts only the highest frequency elements in the signal.8.21 (a) Each of the three terms is periodic. The digital period for each is 14, 3 and 16. The lowest common multiple for these integers is N = 336, the digital period for x[n]. The analog frequencies of the three terms are given by f = Ωf S/(2π). They are 1143, 5333, and 1000 Hz. The DFS frequencies are given by f = kf S/N = 47.6k, so the magnitude spectrum for the signal will contain peaks at k = 24, 112 and 21. These three peaks are shown below. Note the images of these peaks in the second half of the spectrum, at k = 363 – 21 = 342, k = 363 – 24 = 339, and k = 363 – 112 = 251.(b) The low pass filter will extract the two lowest-frequency peaks, at 1000 and 1143 Hz. The DFS magnitude spectrum will contain a peak at k = 21 and one at k = 24, plus imaged peaks at k = 363 – 21 = 342 and k = 363 – 24 = 339.(c) The band pass filter will extract the high frequency peak, at 5333 Hz. The DFS magnitude spectrum for the filtered output will contain a peak at k =112, plus an imaged peak at k = 363 – 112 = 251.(d) The high pass filter output will contain no peaks.8.22 (a) The spectrum has 64 points, so N = 64 is the digital period of the square wave. The fundamental frequency is f S/N = 4000/64 = 62.5 Hz.(b) The period in seconds is the reciprocal of the fundamental frequency, or NT S = 16 msec.(c) The DC component gives the average value of the signal. For this signal, the average is zero.(d) The harmonics present in the signal are odd multiples of the fundamental frequency. The only ones that lie below 500 Hz are 62.5k = 62.5, 187.5, 312.5, and 437.5 Hz. These frequencies correspond to the indices k = 1, 3, 5, 7.。
(Partial) Solutions to Assignment 4pp.81-82Discrete Fourier Series (DFS)Discrete Fourier Transform (DFT), k=0,1,...N-1, n=0,1,...N-1Discrete Time Fourier Transform (DTFT)is periodic with period=2πFourier Series (FS)Fourier Transform (FT)---------------------------------------------------- 2.1 Consider a sinusoidal signalQ2.1 Consider a sinusoidal signalthat is sampled at a frequency s F =2 kHza). Determine an expressoin for the sampled sequence , and determine itsdiscrete time Fourier transformb) Determinec) Re-compute ()X from ()X F and verify that you obtain the same expression as in (a)a). ans:=where andUsing the formular:b) ans:wherec). ans:Let be the sample function. The Fourier transform of isUsing the relationship orwhereConsider only the region where ( orthereforewhereEND-----------------------------2.3 For each shown, determine whereis the sampled sequence. The sampling frequence is given for each case.(b) Hz(d) Hztheory: the relationship between DTFT and FT iswhereorb. ans:d. ans:omitted (using the same method as above)----------------------------------------------------2.4 In the system shown, let the sequence be and the sampling frequency be kHz. Also let the lowpass filter be ideal, with bandwidth (a). Determine an expression for Also sketch the frequency spectrum (magnitude only) within the frequency range(b) Determine the output signal(a) ansFrom class notes, we have where is an ZOH interpolation function and We can writeFirstly, to findwhereIt can be found asSecondly, find This can be solved either by FT or DTFT.We can writewhere andUsing the formula:we haveUsing the formula,:we have from DTFT of y[n]Note the above expression is two pulses at and -the scaling factor is:whereTherefore,where(b) ans:After the ideal LPF, the Fourier transform ofTake inverse Fourier transform of , the output signal is:Note both the and θ terms are introduced by ZOH functionwhere is introduced because is non-ideal and θ represents the delay of----------------------------------------------------Q 2.5. We want to digitize and store a signal on a CD, and then reconstruct it at a later time. Let the signaland let the sampling frequency Hz.(a) Determine the continuous time signal after the reconstruction.(a) ans: Assuming (ZOH+ ideal LPF) is used. This problem can be solved by using the results directly from Q2.4. In Q2.5 there are 3 sinusoidal signals instead of only one in Q2.4. Details of the solutions are omitted.----------------------------------------------------Q 2.6 In the system shown, determine the output signal for each of the following input signal Assume the sampling frequency kHz and the low pass filter (LPF) to beideal, with bandwidth(b)(d)Ans (b) (d): same as in problem Q2.5.----------------------------------------------------2.7 Suppose in DAC you want to use a linear interpolation between samples, as shown in the accompanying figure. This reconstructor can be called a first order hold, because the equation of a line is a polynomial of degree 1(a). Show that with a triangular pulse as shownin the figure(b). Determine an expression for in terms ofand(c). In the accompanying figure, let kHz, and the filterbe ideal with bandwidth Determine the outputAns: omitted.----------------------------------------------------2.9 In the following system, let the signal be affected by some random error as shown. The error is white, zero mean, with variance Determine the variance of the error after the filter for each of the filter(b)(b) ans:The variance of the output of the filter is given byTherefore--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------。
Chapter 3 Solutions3.1 (a) (i) x[0] = 3(ii) x[3] = 5(iii) x[–1] = 2(b) (i)(ii) The sketch for x[n+1] does not show the value of the sample x[5], since this information is not provided in the question.3.2 The impulse function is zero everywhere except n = 0.(a) δ[–4] = 0(b) δ[0] = 1(c) δ[2] = 03.3 (a) This function is a mirror image of the impulse function across the verticalaxis, which means no change occurs.(b) This function shifts the impulse two steps to the right and increases its amplitude to 2.(c) This function is the sum of two impulse functions.3.4 The step function is zero for n < 0 and one everywhere else.(a) u[–3] = 0(b) u[0] = 1(c) u[2] = 13.5 (a) x[n] = 4u[n–1](b) x[n] = –2u[n](c) x[n] = 2u[–n](d) x[n] = u[n–2](e) x[n] = u[2–n]3.6(a)(b)3.7 (a) This signal is a sum of shifted step functions, each with amplitude one. x[n] = 0.1u[n –1] + 0.1u[n –2] + 0.1u[n –3] + …(b) This signal is a sum of impulse functions with increasing amplitude. x[n] = 0.1δ[n –1] + 0.2δ[n –2] + 0.3δ[n –3] + …3.8 x[n] = (u[n] – u[n –2]) + (u[n –5] – u[n –7]) + (u[n –10] – u[n –12])3.9 x[n] = 2δ[n] – 3δ[n –1] + δ[n –2] – δ[n –3] + 3δ[n –4]3.10 (a)x[n] = δ[n –3] + δ[n –4] + δ[n –5] + δ[n –6] – δ[n –7] – δ[n –8] – δ[n –9] – δ[n –10] – δ[n –11] ∑∑==-δ--δ=117k 63k ]k n []k n [(b) x[n] = u[n –3] – 2u[n –7] + u[n –12] 3.11 x[n] = u[n] + 2u[n –4]3.123.13 The signal has values 1, 0.5, 0.25, 0.125, etc. These values can be generated from the function 0.5n , where each value is the amplitude of an impulse function. The signal may be expressed as ∑∞=-δ=0k k ]k n [)5.0(]n [x = δ[n] + 0.5δ[n –1] + 0.25δ[n –2] + 0.125δ[n –3] + …3.14 (a)By Euler’s identity, ⎪⎭⎫ ⎝⎛π-⎪⎭⎫ ⎝⎛π==π-4n sin j 4n cos e]n [x 4n j(b)From (a), 4π=Ω. Therefore, 18422=ππ=Ωπ. The digital period is 8 samples.3.15 (a)⎪⎭⎫⎝⎛π-⎪⎭⎫ ⎝⎛π==π-3n sin j 3n cos e ]n [x 3n j(b) The magnitude of any complex number is the square root of the sum of the squares of the real and imaginary parts. The magnitudes in the last column in (a) show that 3n j eπ- = 1. This equation is true for all n.3.16 The frequency of the analog signal is f = ω/2π = 200/2π Hz. The samplingfrequency f S = 1/T S = 1/(25x10–3) = 40 Hz. The digital frequency is Ω = 2πf/f S = 200/40 = 5 rads. The sampled signal is x[n] = 5sin(n Ω) = 5sin(5n).3.17 Check 2π/Ω for each function. The function is periodic if this ratio is rational. (a) 2π/Ω = 2π/(4/5) = 10π/4 = 5π/2This ratio is not rational, so the sinusoid is not periodic. (b) 2π/Ω = 2π/(6π/7) = 14/6 = 7/3This ratio is rational, and in lowest terms. The number in the numerator, 7, is the number of samples before the sequence repeats. (c) 2π/Ω = 2π/(2π/3) = 3This result may be seen as 3/1. Thus, the sinusoid is periodic with period 3.3.18 (a) From the equation for x(t), ω = 2πf = 1000π, so f = 500 Hz. Since seven samples are collected every three cycles, N = 7 and M = 3, so37M N 2==ΩπThis means SS f 5002f f 276π=π=π=Ω. Solving S f 500276π=π gives f S = 1167 Hz. (b) Since f S > 2f, the sampling rate is adequate to avoid aliasing.3.19 (a) The following samples are graphed below.(b) The ratio 2π/Ω is 2π/(4π/5)=10/4 = 5/2. The numerator, 5, indicates the sinusoidal sequence repeats every five samples. Because the denominator of the ratio is 2, these five samples are collected over two analog periods.(c) The analog signal is superimposed over the digital signal with a dashed line in the figure below.3.20 The analog frequency of x(t) is f = ω/(2π) = 2500π/(2π) = 1250 Hz. The digital frequency of x[n] is π/3 radians. These frequencies must be related through the equationSS f 12502f f 23π=π=π=ΩThe solution to this equation is f S = 7500 Hz. One other solution is possible, since⎪⎭⎫⎝⎛π=⎪⎭⎫ ⎝⎛π-π=⎪⎭⎫ ⎝⎛π3n 5cos 3n n 2cos 3n cos . This view givesSf 1250235π=π=Ωor f S = 1500 Hz. At this frequency, aliasing occurs. The signal appears at a frequency of 250 Hz. This explains why this second sampling rate works:315002502f f 2S π=π=π=Ω3.21 (a) From 052n 92=π+π, n = 59-. The shift moves the function left by 9/5samples. (b) The samples in the two signals do not match, because the shift is not an integer.(c) 951.052)0(92sin ]0[x 1=⎪⎭⎫ ⎝⎛π+π=927.052)1(92sin ]1[x 1=⎪⎭⎫ ⎝⎛π+π=(d) For a phase shift of two samples to the right,0)2(92n 92=θ+π=θ+π, so 94π-=θ. Thus, ⎪⎭⎫ ⎝⎛π-π=94n 92sin ]n [x 1. One period of this signal contains the same sample values as one period of x 2[n]. 3.22 (a)(b)(c)(d) 3.23(a)Since the digital sinusoid is periodic,M 10M N 2==Ωπ. Since Sf f 2π=Ω, M10f f S =. Therefore, 10Mf f S=. Possible frequencies f of the analog signal are defined by M = 1, 3, 7, 9, 11, …, that is, all integers that do not share any factors with 10. Other integers M result in a digital period less than 10. For 4 kHz sampling, the possible frequencies f are 400, 1200, 2800, 3600, 4400, … Hz. (b) The only two frequencies from (a) that lie within the Nyquist range are 400 Hz and 1200 Hz. All other frequencies f, when sampled at 4 kHz, produce aliases at 400 or 1200 Hz.3.24 A 16-bit image uses 16 bits to represent the gray scale level for each pixel in the image. A total of 65,536 gray scale values can be represented with 16 bits.3.25 Each square on the checkerboard is recorded by a 16 x 16 block of pixels. All pixels in the white squares have gray scale value 255. All pixels in the black squares have gray scale value 0.。
Chapter 2 Discrete-Time Signals and Systems⏹TextbookDigital Signal Processing Principles, Algorithms, and Applications(thefourth version), John G. Proakis, Dimitris G. Manolakis, 电子工业出版社,2007⏹Readings[1]S. K.Mitra,Digital Signal Processing_A Computer-Based Approach(the fifth version),清华大学出版社,2001年9月.[2] A.V.Oppenheim著,刘树棠、黄建国译: Discrete-Time SignalProcessing, 西安交通大学出版社,200212 Discrete-Time Signals and Systems2.1 Discrete-Time Signals2.2 Discrete-Time Systems2.3 Analysis of Discrete-Time LTI Systems2.4 Discrete-Time Systems Described by Difference Equations 2.5 Implementation of Discrete-Time Systems2.6 Correlation of Discrete-Time Signals67δ(t)= ?Unit step signal8Exponential Signal─x(n) = a n , –∞< n < ∞a = re jθ?9Transformation of the independent variable (time)+2←+2→2.2.2 Block Diagram Representation of Discrete-Time Systems Ex.13Initial condition?y (n )= 0.25y (n –1) + 0.5 x (n ) + 0.5 x (n –1)2.2.3 Classification of Discrete-Time Systems1.Static (memoryless) vs. dynamic:y(n)= T[x(n), n]2.Time-invariant vs. time-variant:x(n –k)→ y(n –k)3.Linear vs.nonlinear:T[a1x1(n)+ a2x2(n)]= a1T[x1(n)]+ a2T[x2(n)]4.Causal vs.noncausal:y(n)= F[x(n), x(n –1),x(n –2), …]5.Stable vs.unstable:|x(n)|≤ M x< ∞→ |y(n)|≤ M y< ∞142.2.3 Classification of Discrete-Time SystemsEx. Time-invariant versus time-variant: x(n –k)→ y(n, k)=y(n –k)1.y(n)= x(n) –x(n –1)2.y(n)= nx(n)y(n, k)= x(n –k) –x(n –k –1) = y(n –k ) y(n, k)=n x(n –k) ≠y(n –k )?3.y(n)= x(–n)4.y(n)= x(n) cos ω0n y(n, k)=x(–n –k) ≠y(n –k ) y(n, k)≠y(n –k )2.2.3 Classification of Discrete-Time SystemsEx. Linear versus nonlinear :T [a 1x 1(n )+ a 2x 2(n )]= a 1T [x 1(n )]+ a 2T [x 2(n )]1.y (n )= nx (n )2.y (n )= x (n 2)?Let : x (n ) ≡a x (n )+ a x (n )3.y (n )= x 2(n )4.y (n )= Ax (n ) + B5.y (n )= e x (n )1122Check : T [x (n )]= a 1T [x 1(n )]+ a 2T [x 2(n )]?2.2.3 Classification of Discrete-Time SystemsEx. Causal versus noncausal :y (n )= F[x (n ), x (n –1),x (n –2), …]1.y (n )= x (n ) + x (n –1)2.y (n )= ∑k= –∞ x (k )n ?3.y (n )= ax (n )4.y (n )= x (n ) + 3x (n + 4)5.y (n )= x (n 2)6.y (n )= 2x (n )7.y (n )= x (–n )Ex. Stable versus unstable :|x (n )|≤ M x < ∞ → |y (n )|≤ M y< ∞y (n )= y 2(n –1) + x (n )2.2.3 Classification of Discrete-Time Systems?x (n )= { …0, 0, 2, 0, 0, …}y (n )= { …0, 0, 2, 22, 24, 28, …}2.3.2 Resolution of a Discrete-Time Signal into Impulses (1/2)∞x(n)= ∑k= –∞x(k)δ(n –k)2.3.2 Resolution of a Discrete-Time Signal into Impulses (2/2) Ex. x(n)= {2, 4, 0, 3}x(n)= 2δ(n + 1)+ 4δ(n)+ 3δ(n –2)2.3.3 Response of LTI Systems to Arbitrary Inputs: theConvolution Sumy (n, k )≡h (n, k ) = T [δ(n –k ) ]y (n )= ∑k= –∞ x (k ) h (n, k ) (Linear)= ∑k= –∞ x (k ) h (n –k ) (Time-invarient)∞∞h (n ) : Impulse ResponseCompletely characterizes the LTI systemEx.y (n 0)= ∑k= –∞ x (k ) h (n 0–k )∞Ex.→ 4→ 8→ 1Ex. Convolution is commutative:y(n)= ∑x(k) h(n –k)= ∑x(n –k) h(k)Commutative lawIdentity and Shifting Propertiesx(n) *δ(n)= x(n)x(n) *δ(n –k)= x(n –k) δ(n) * h(n)= h(n)δ(n –k)* h(n) = h(n –k)Associative law Distributive law2.3.5 Causal LTI Systemsy (n )= ∑k= –∞ x (k ) h (n –k )∞y (n )= ∑h (k ) x (n –k )∞k=0= ∑k= –∞ x (k ) h (n –k )nEx.x (n )= u (n ), h (n )= a n u (n )y (n )= ∑k=0a k = (1 –a n+1)/(1 –a )n2.3.6 Stability of LTI SystemsS n ≡∑k= –∞ |h (k )| < ∞∞A LTI system is stable if its impulse response is absolutely summable.2.3.7 Systems with Finite-Duration and Infinite-DurationImpulse Responsey (n )= ∑k=0h (k ) x (n –k )(IIR)y (n ) = ∑k=0h (k ) x (n –k )(FIR)∞M–12.5.1 Structures for the Realization of LTI Systems (1/2) Ex. A first-order system: y(n)= –a1y(n –1) + b0x(n) + b1x(n –1)Direct form IDirect form II2.5.1 Structures for the Realization of LTI Systems (2/2)N MEx. General case:y(n) = –∑k=1a k y(n –k)+ ∑k=0b k x(n –k)2.5.2 Recursive and Non-recursive Realization of FIR SystemsEx. A 2nd-order system:y(n)= –a1 y(n –1) –a2 y(n –2)+ b0 x(n) + b1 x(n –1) + b2 x(n –2)Purely recursive System2.5.2 Recursive and Non-recursive Realization of FIR Systems Ex. An FIR moving average systemNon-recursiveRealizationRecursiveRealization。
Chapter 4 Solutions4.1 (a) The pass band gain for this filter is unity. The gain drops to 0.707 of this value at 2400 Hz and 5200 Hz. Thus, the frequencies passed by the filter lie in the range 2400 to 5200 Hz.(b) The filter is a band pass filter.(c) The bandwidth is the range of frequencies for which the gain exceeds 0.707 of the maximum value, or 5200 –2400 = 2800 Hz.4.2 A low pass filter passes frequencies between DC and its cut-off frequency. The bandwidth is identical to the cut-off frequency. Thus, the cut-off frequency is 2 kHz.4.3 The maximum pass band gain of the filter is 20 dB. The bandwidth is defined as the range of frequencies for which the gain is no more than 3 dB below the pass band gain, or 17 dB. This gain occurs at the cut-off frequency of 700 Hz. For a high pass filter, the bandwidth is the range of frequencies between the cut-off frequency, 700 Hz, and the Nyquist frequency (equal to half the sampling rate), 2 kHz. The bandwidth is 1300 Hz. 4.4 The low pass filter has a cut-off frequency of 150 Hz and bandwidth 150 Hz. The band pass filter has cut-off frequencies at 250 Hz and 350 Hz for a bandwidth of 100 Hz. The high pass filter has a cut-off frequency of 400 Hz and a bandwidth of 100 Hz, which extends from its cut-off frequency to the Nyquist limit at half the sampling rate.4.5 (a) The low pass filter output is on the left. The high pass filter output is on the right.(b) An approximation to the original vowel signal can be found by adding the high and low pass waveforms together.x[n]n4.6 (a) linear (b) non-linear (c) non-linear (d) linear4.7 Since the new input is shifted to the right by two positions from the original input, the new output is shifted to the right by two positions from the original output.4.8(a) y[n] = –0.25y[n–1] + 0.75x[n] – 0.25x[n–1](b) y[n] = y[n–1] – x[n] – 0.5x[n–1]4.9 (a) The system is non-recursive.b0 = b1 = b2 = 1/3(b) The system is recursive.a0 = 1, a1 = –0.2, b0 = 1(c) The system is recursive.a0 = 1, a1 = 0.5, b0 = 1, b1 = –0.44.10 (a)(c)(d)4.114.124.13 The overall input x[n] for any sampling instant is the sum of the inputs x1[n] and x2[n]. This overall input is applied to the difference equation in the normal way to obtain outputs.4.144.154.16 y[n] = 0.5y[n–2] + 1.2x[n] – 0.6x[n–1] + 0.3x[n–2]4.17 y[n] = 2.1x[n–1] – 1.5x[n–2]4.18 w[n] = x[n] + 0.3w[n–1] – 0.1w[n–2]y[n] = 0.8w[n] – 0.4w[n–2]4.19 The difference equation for the first second-order section isy1[n] = –0.1x[n] + 0.2x[n–1] + 0.1x[n–2]The difference equation for the second second-order section isy[n] = y1[n] + 0.3y1[n–2]Substituting the first equation into the second givesy[n] = (–0.1x[n] + 0.2x[n–1] + 0.1x[n–2])+ 0.3(–0.1x[n–2] + 0.2x[n–3] + 0.1x[n–4]) = –0.1x[n] + 0.2x[n–1] + 0.07x[n–2] + 0.06x[n–3] + 0.03x[n–4] 4.204.21 The direct form 2 equations are:w[n] = x[n] + 1.2w[n–1] – 0.5w[n–2]y[n] = w[n] – 0.2 w[n–1]4.22 (a) y[n] = –0.14 y[n–1] – 0.38 y[n–2] + x[n] y[n]y[n](b) w[n] = x[n] – 0.14w[n –1] – 0.38w[n –2] y[n] = w[n]Note that the difference equation diagram for this part is the same as that for part (a).4.23 The first ten samples of the impulse response are:4.24 From the figure, the filter has a finite impulse response. It may be described as a sum of impulse function as:h[n] = 0.5δ[n] + 0.4δ[n –1] + 0.3δ[n –2] + 0.2δ[n –2] The difference equation has the parallel form:y[n] = 0.5x[n] + 0.4x[n –1] + 0.3x[n –2] + 0.2x[n –3]4.25 The impulse response is finite, with samples as listed in the table.The impulse response samples for a FIR filter serve directly as b k coefficients, so y[n] = x[n] + 0.3x[n –1] + 0.09x[n –2] + 0.027x[n –3]This result may also be seen by writing the impulse response in terms of impulse functions: h[n] = δ[n] + 0.3δ[n –1] + 0.09δ[n –2] + 0.027δ[n –3]y[n]4.264.27 The impulse response may be found from the difference equation ash[n] = – 0.5h[n –1] + δ[n] – 0.8δ[n –1]The step response may be found froms[n] = – 0.5s[n –1] + u[n] – 0.8u[n –1]or by finding a cumulative sum of the impulse response samples.4.28 The difference equation for a five-term moving average filter is()]4n [x ]3n [x ]2n [x ]1n [x ]n [x 51]n [y -+-+-+-+=The impulse response,()]4n []3n []2n []1n []n [51]n [h -δ+-δ+-δ+-δ+δ=is plotted below.4.29 The impulse response belongs to a non-recursive filter because, after a finite number of samples, the output settles to zero permanently.4.30 (a) The response to an impulse function is, by definition, the impulse response. Therefore, the answer to (a) is provided in the question.(b) The signal x[n] consists of two impulse functions with different amplitudes and locations. The response to this input will be the same combination of impulse responses, that is,y[n] = 0.8h[n] + 0.5h[n–1]The output samples are listed in the following table:4.31 The step response can be obtained froms[n] = u[n] – 0.5u[n–1] – 0.7u[n–2]The first ten samples are:4.32 (a) The impulse response can be obtained fromh[n] = –0.75h[n–1] + δ[n] – 0.5δ[n–1](b) The step response may be obtained froms[n] = –0.75s[n–1] + u[n] – 0.5u[n–1]or by finding a cumulative sum of the impulse response samples.。