




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!





Spring 2008 Assigned Homework Oppenheim and Shafer (2nd ed.) Instructor: S.A. Tretter
Note: The dates shown are when the problems were assigned. Homework is due at the beginning of the next class after they were assigned unless stated differently.
(a) Hint: cos ω 0 t F ←→ πδ(ω − ω 0 ) + πδ(ω + ω 0 ) sin ω 0 t F ←→ −jπδ(ω − ω 0 ) + jπδ(ω + ω 0 ) i. Find the Hilbert transforms of x(t) = cos ω 0 t and y(t) = sin ω 0 t ii. Find the analytic signals x+(t) and y+(t) iii. Find X+(ω) and Y+(ω) (b) Let x(t) have the rectangular shaped low-pass Fourier transform
X(ω) =
{ 1 for |ω| < W 0 elsewhere
i. Find x(t) and ˆx(t) ii. Find x+(t) and X+(ω)
Find the solutions to the following difference equations using one-sided z-transforms with the one-sided delay theorem.
(a) y(n) + 3y(n − 1) = x(n) where x(n) = 2−nu(n) and y(−1) = 1 (b) y(n) − 0. 5 y(n − 1) = x(n) − 0. 5 x(n − 1) where x(n) = u(n) and y(−1) = 0 (c) y(n) − 0. 5 y(n − 1) = x(n) − 0. 5 x(n − 1) where x(n) = u(n) and y(−1) = 1
First make pole/zero plots for the following transfer functions. Then sketch their am- plitude and phase responses using the geometrical approach based on vectors drawn from the poles and zeros to the unit circle. Finally, compute and plot the exact ampli- tude and phase responses using your favorite programming language or tool (mathcad, MATLAB, C, FORTRAN, etc.) The MATLAB functions freqz( ) and freqzplot( ) in the signal processing package are convenient for computing and plotting the theoretical amplitude and phase responses.
(a)
1 + z−^1
(b)
z−^2 (1 − 0. 8 z−^1 )(1 − 0. 9 z−^1 )
(c)
(1 + z−^1 )^2 1 + 0. 16 z−^2
(This project must be turned in or else you will get a grade of “I” for this course.)
A 4th order IIR filter has a transfer function of the form H(z) = KH 1 (z)H 2 (z) where K = 0.0659434348 and
H 1 (z) =
1 + 1. 732154 z−^1 + z−^2 1 − 0. 620227 z−^1 + 0. 195243 z−^2
H 2 (z) =
1 + 0. 883717 z−^1 + z−^2 1 − 0. 444412 z−^1 + 0. 678665 z−^2 Let the sampling rate be fs = 8000 Hz.
(a) Use the MATLAB functions freqz( ) and freqzplot( ) in the signal processing package to compute and plot the theoretical amplitude response of the filter in dB. (b) Suppose the input xc[n] = cos ωnT u[n] has the output yc[n] and the input xs[n] = sin ωnT u[n] has the output ys[n]. Then the input x[n] = xc[n]+jxs[n] = ejωnT^ u[n] has the output y[n] = yc[n] + jys[n]. The amplitude of this output is a[n] = (y c^2 [n] + y^2 s [n])^1 /^2. After some time the filter output will reach a steady state and a[n] will become a constant equal to the amplitude response on a linear scale since the magnitude of x[n] is 1 for positive n. The amplitude response in dB is α = 20 log 10 a[n]. i. Write a MATLAB program to implement the filter H(z) as a cascade of the scale factor K followed by H 1 (z) and then H 2 (z). Implement H 1 (z) and H 2 (z) as a second-order Type 1 direct form sections. Do not use MATLAB’s built in filter implementation functions but program your own sums of products.
(1 − z−^1 )^2 T s^2 where, as usual, z = esT^. The filter A(s) is a linear point connector with a one-sample delay to make it realizable. The desired response G(s) is cascaded with the guard filter.
(a) Find the transfer function of the digital filter approximation by computing H(z) = Y (z)/X(z). (b) Write a difference equation for realizing H(z). (c) Find the amplitude and phase responses of H(z) and compare them with those of the ideal differentiator.