Sale!

EE 3660 Homework Assignment #5: Chap. 10 solved

Original price was: $35.00.Current price is: $30.00. $25.50

Category:

Description

5/5 - (10 votes)

I Paper Assignment (30%)
1. (4%) This problem examines conversions between various filter specifications.
Given the absolute specifications Îīs = 0.0001 and ω𝑝 = 0.3π, ω𝑠 = 0.5π, determine the
relative specifications ðī𝑠 and ω𝑐
, ∆𝜔.
2. (6%) The Hann window function can be written as
w[n] = [0.5 − 0.5 cos(2πn/M)]ð‘Ī𝑅[n].
where ð‘Ī𝑅[n] is the rectangular window of length M + 1.
(a) Express the DTFT of w[n] in terms of the DTFT of ð‘Ī𝑅[n].
(b) Explain why the Hann window has the wider mainlobe but lower sidelobes than the
rectangular window of the same length.
3. (12%) Consider an FIR filter with impulse response h[n] = u[n] − u[n − 4].
(a) Determine and sketch the magnitude response |ðŧ(𝑒
𝑗ω)|
(b) Determine and sketch the amplitude response ðī(𝑒
𝑗ω). Compare this sketch with that in (a)
and comment on the difference.
(c) Determine and sketch the phase response ∠ðŧ(𝑒
𝑗ω).
(d) Determine and sketch the angle response ÎĻ(𝑒
𝑗ω). Compare this sketch with that in (c) and
comment on the difference.
4. (8%) Consider the type-IV linear-phase FIR filter characterized by antisymmetric impulse
response and odd-M.
(a) Show that the amplitude response ðī(𝑒
𝑗ω) is given by (10.38) with coefficients d[k] given
in (10.39).
(b) Show that the amplitude response ðī(𝑒
𝑗ω) can be further expressed as (10.40) with
coefficients dĖ‚ [k] given in (10.41)
II Program Assignment (70%)
5. (10%) A lowpass FIR filter is given by the specifications: ω𝑝 = 0.3π, ω𝑠 = 0.5π, and ðī𝑠 = 50
dB.
Use the fir2 function to obtain a minimum length linearphase filter. Use the appropriate window
function in the fir2 function. Provide a plot similar to Figure 10.12.
6. (12%) Design a highpass FIR filter to satisfy the specifications: ω𝑠 = 0.3π, ω𝑝 = 0.5π, and ðī𝑠
= 50 dB.
(a) Use Kaiser window to obtain a minimum length linear-phase filter. Provide a plot similar to
Figure 10.12.
(b) Repeat (a) using the fir1 function.
7. (12%) In this problem we reproduce Figures 10.4 and 10.5. For each of the following linearphase FIR filters described by h[n], obtain impulse response, amplitude response, magnitude
response, and pole-zero plots in one figure window. For frequency response plots use the
interval −2π â‰Ī ω â‰Ī 2π.
(a) Type-I filter: h[n] = {1, 2, 3, −2, 5, −2, 3, 2, 1}.
(b) Type-II filter: h[n] = {1, 2, 3, −2, −2, 3, 2, 1}.
(c) Type-III filter: h[n] = {1, 2, 3, −2, 0, 2, −3, −2, −1}.
(d) Type-IV filter: h[n] = {1, 2, 3, −2, 2, −3, −2, −1 }.
8. (18%) Consider a Blackman window of length L = 21.
(a) Compute and plot the log-magnitude response in dB over −π â‰Ī ω â‰Ī π. In the plot measure
and show the value of the peak of the first sidelobes.
(b) Compute and plot the accumulated amplitude response in dB using the cumsum function. In
the plot measure and show the value of the peak of the first sidelobe.
(c) Repeat (a) and (b) for L = 41.
9. (18%) An ideal lowpass filter has a cutoff frequency of ω𝑐 = 0.4π. We want to obtain a length L
= 40 linear-phase FIR filter using the frequency-sampling method.
(a) Let the sample at ω𝑐 be equal to 0.5. Obtain the resulting impulse response h[n]. Plot the
log-magnitude response in dB and determine the minimum stopband attenuation.
(b) Now vary the value of the sample at ω𝑐 and find the largest minimum stopband attenuation.
Obtain the resulting impulse response h[n] and plot the log-magnitude response in dB in the
plot window of (a).
(c) Compare your results with those obtained using the fir2 function (choose hamming window).
III Reference
ðŧ(𝑒
𝑗ω) = ∑ (𝑑[𝑘]𝑠𝑖𝑛 [𝜔 (𝑘 −
1
2
)]) 𝑗
𝑀+1
2
𝑘=1
𝑒
−
𝑗ω𝑀
2
≜ 𝑗ðī(𝑒
𝑗ω)𝑒
−𝑗ω𝑀/2
. (10.38)
𝑑[𝑘] = 2ℎ [
𝑀+1
2
− 𝑘]. 𝑘 = 1,2, â€Ķ ,
𝑀+1
2
(10.39)
ðī(𝑒
𝑗ω) = sin(
𝜔
2
) ∑ 𝑑Ė‚[𝑘] cos 𝜔𝑘 (𝑀−1)/2
𝑘=0
. (10.40)
d[k] =
{

1
2
(2𝑑Ė‚[0] − 𝑑Ė‚[1]), 𝑘 = 1
1
2
(2𝑑Ė‚[𝑘 − 1] − 𝑑Ė‚[𝑘]), 2 â‰Ī 𝑘 â‰Ī (𝑀 − 1)/2
1
2
(2𝑑Ė‚[(𝑀 − 1])/2), 𝑘 = (𝑀 + 1)/2
. (10.41)
ðŧ(𝑒
𝑗ω) = ∑ ℎ[𝑛]
𝑀
𝑁=0 𝑒
𝑗ωn ≜ ðī(𝑒
𝑗ω)𝑒
𝑗ð›đ(𝑒
𝑗ωn)
. (10.42)
ð›đ(𝑒
𝑗ωn
) ≜ âˆ’ÎąÏ‰ + Îē. (10.43)