Quiz 5 Solution
Quiz 5 Solution
1. If A(f) the magnitude response for a filter is shown down, and if Fp = 0.1 fs and Fs =
0.4 fs, then get the passband ripple δp? Where fs = sampling frequency.
A. = 0.2839
B. = 0.3190
C. = 0.1007
D. = 0.5609
E. = None
2. For an FIR filter, If the passband ripple factor δp = 0.2 then get Ap (the passband
ripple in dB)
A. = 1.938 dB
B. = 2.438 dB
C. = 1.1129 dB
D. = 3.096 dB
E. = None
3. If the discrete transfer function of an unknown type linear-phase FIR filter is:
A. Type 1
B. Type 2
C. Type 3
D. Type 4
f T 1
0.716
Sp 1 A Fp 1 0.716 0.284
4 5 0 5 4
m U Even
Symmeryodd
IF
4 1
ÉPÉ
AS F
Alf
4 loslait.IT tsmFft
atft tlo.ismTIt
MFcos
O.nl 2C0s 2fT Xoslaaft
tto.ucoscagty to.co 2tfT
Ao 0
A E
0.4 FIT cos a ST
TEAM Cos
ET
COS IT
0.4 1
may
A. HPF High Pass Filter
B. LPF Low Pass Filter
C. BPS Band Pass Filter
D. BSF Band Stop Filter
E. Notch Filter
F. Resonator Filter
5. Consider a type 3 FIR linear-phase filter of order m = 2 with coefficient vector b = [1,
0,−1]. Get the frequency response of the filter H(f). Where θ = 2πfT.
6. Consider a type 3 FIR linear-phase filter of order m = 2 with coefficient vector b = [1,
0,−1]. Get the zeros of filter H(z).
A. Z1, Z2 = 1,−1
B. Z1, Z2 = -1, -1
C. Z1, Z2 = 1, -0.5
D. Z = -1 (only one zero)
E. Z = 0.5 (only one zero)
F. None
7. Consider a type 1 FIR linear-phase filter of order m = 2 with coefficient vector b = [1,
1, 1]. Get the phase response for the filter Φ(f).
A. Φ(f) = exp(−j2πf)
B. Φ(f) = exp(−j4πf)
C. Φ(f) = exp(−j0.5πf)
D. Φ(f) = exp(−j3/4πf)
E. None
8. Consider the next FIR filter, is this a linear-phase FIR filter or not?
H(z) = -1 - 2z−1 + 3z−2 − 3z−3 − 2z−4 − z−5
2
H2 1 7
g 1 550
Jo et et sino
jei
éJO2j sino
jejksino
Zeros 1 1
A 1 late
2 1 2 221 z
HZ I E 22
f ste jotejs
e.jo eso s ejo
e.jo 2cos0 1
J2ITfT
41f e
A. Not linear-phase filter.
B. Linear-phase filter
C. Linear from f=0 to fs/4 only
D. Linear from f=fs/4 to fs/2
E. None
10. the impulse response coefficients for a linear-phase FIR filter of order m = 12, is
shown down. Which type is this filter?
A. Type 1
B. Type 2
C. Type 3
D. Type 4
11. Get the group delay for the next FIR linear-phase filter:
H( f ) = exp(−j4πfT) Ar(f)
A. Answer: 2T
B. Answer: 0.5T
C. Answer: 2fs (fs = sampling frequency)
D. Answer: 2π
E. Answer: π/2
F. Answer: None
12. [Need Matlab] If you are constructing an impulse response coefficient for an ideal LPF
with F0 = fs/4, and fs = 100 Hz, beside m = 40, then get h(k) at k=p-1, p, and p+1.
Where p = m/2.
even
symmetry even
T
if 44ft u 2T
20
p
1
e
hp h 20 2F T 2x T
hp 1 h 11 sin 2 11 20 EXT
IT 19 20
0.318
E. Answer: 0.318, 1, 0.318
F. None
13. Suppose a lowpass filter of order m = 10 is designed using the windowing method
with the Hanning window and fs = 2000 Hz. Get width of transition band.
A. Answer: 620 Hz
B. Answer: 600 Hz
C. Answer: 560 Hz
D. Answer: 580 Hz
E. None
14. Consider the problem of using the windowing method to design a lowpass filter to
meet the following specifications. Get the order of the filter if Hamming window is
selected.
A. Answer: m = 17
B. Answer: m = 28
C. Answer: m = 56
D. Answer: m = 12
E. Answer: m = 27
F. None
15. linear-phase FIR filter is designed with the windowing. The filter meets its transition
bandwidth specification of 200 Hz exactly with a filter of order m = 30. Find the filter
order needed to achieve the same transition bandwidth using the Blackman window.
A. Answer: m = 54
B. Answer: m = 17
C. Answer: m = 27
D. Answer: m = 18
E. None
16. Consider the problem of designing a type 1 linear-phase bandpass FIR filter using the
frequency sampling method. Suppose the filter order is m = 60. Find a simplified
expression for the filter coefficients using the following ideal design specifications.
5 3
B 3.1 0.31
3
D Fs FP
in
Hanning m 3 10 33
blackman
it 20047
m 30
m B 5h5 3.1
55
me
cpc 1s
l
Arti oct9th
f 4 191 12
0 12 clfikso
so
cos
pi
(fs, Fp1, Fp2) = (1500, 100, 300) Hz
A. Answer: Line 5
B. Answer: Line 4
C. Answer: Line 3
D. Answer: Line 2
E. Answer: Line 1
F. None
1. If A(f) the magnitude response for a filter is shown down, and if Fp = 0.1 fs and Fs =
0.4 fs, then get the stop band attenuation δs?
i.fiiiiii.fi etti
A. Answer = 0.1077
B. Answer = 0.2039
C. Answer = 0.9010
D. Answer = 0.5019
0 1077
E. None
2. If the stop band attenuation factor δs = 0.15 then get As (Attenuation in dB).
A. Answer = 16.47 dB
B. Answer = 10.97 dB
C. Answer = 21.34 dB
D. Answer = 33.46 dB
E. None As 20 log 010.15 16.47 dy
3. If the discrete transfer function of an unknown type linear-phase FIR filter is:
H(Z) = 3 + 4Z-1 + 4Z-3 + 3Z-4.
Then specify the type of this linear-phase FIR filter.
A. Type 1 s 4 0 4
B. Type 2 m 4 Even
C. Type 3 Even
D. Type 4 symmery
4. Consider a type 2 FIR linear-phase filter of order m = 1 with coefficient vector b = [1,
1]. Get the frequency response H(f). Where θ = 2πfT.
A. exp(−jθ/2) [2cos(θ/2)]
B. exp(−j2θ) [2cos(2θ)] H Z 1 2
C. exp(−jθ/2) [2cos(2θ)]
D. exp(jθ/2) [2cos(θ)]
HS I e.jo
E. None éj et it aces
E
5. Consider a type 2 FIR linear-phase filter of order m = 1 with coefficient vector b = [1,
1]. Get the zeros of H(Z).
1
A. Z = -1 (only one zero) HIZ 1 2 x
B. Z1, Z2 = 1, -1 22
C. Z = +1 (only one zero)
D. Z1, Z2 = ½ , - ½
E. None
6. Consider a type 1 FIR linear-phase filter of order m = 2 with coefficient vector b = [1,
1, 1]. Get the amplitude response for the filter Ar(f).
A. Ar(f) = 1 + 2 cos(2πfT) 1 ʰ
B. Ar(f) = 2 cos(2πfT)
H Z 1 7 7
520
C. Ar(f) = ½ + cos(2πfT)
Hlf I eJO e
D. Ar(f) = ½ cos(2πfT)
E. Ar(f) = 1 + 2 cos(πfT)
e esots e to
F. None
ej s 2 05 o
7. Consider the next FIR filter, is this a linear-phase FIR filter or not? Atf 1 2cos 217ft
H(z) = 1 + Z−1 – 5Z−2 + Z−3 – 6Z−4
A. Not linear-phase FIR filter.
1 1 5 1 6
B. Yes, linear-phase FIR filter.
9. If the impulse response coefficients for a linear-phase FIR filter of order m = 11, is
shown down. Which type is this filter?
10. Get the group delay for the next FIR linear-phase filter:
A. Answer: 2T
B. Answer: 0.5T
C. Answer: 2fs (fs = sampling frequency)
D. Answer: 2π
E. Answer: π/2
F. Answer: None E U ft
IT
I 4 T
11. Which one of the next H(Z) represents an FIR filter?
A. H(Z) = 1 / [ Z-1 + 0.5 ]
B. H(Z) = [ Z-1 - 0.5 ]
C. H(Z) = [ Z-1 - 0.5 ] / [ Z-1 - 0.2 ]
D. H(Z) = Z-1 + 0.7Z-2
A. Answer: B, D
B. Answer: All
C. Answer: None
D. Answer: A, C
E. Answer: A, B, C
12. [Need Matlab] The impulse response for a Hamming window of m=20 (p = m/2) will
be for k=p-3, p, and p+3 as:
p 10
A. Answer: 0.810, 1.0, 0.810.
B. Answer: 0.810, 1.0, -0.810
C. Answer: 0.5, 1.0, 0.5
D. Answer: 0.5, 1.0,- 0.5
E.
F.
Answer: 0.631, 1.0, 0.631
None
w 7 0.54 0,46 0
0.81
II
w 1 0.46cos
13. Suppose a lowpass filter of order m = 10 is designed using the windowing method
with the Hamming window and fs = 2000 Hz. Get width of transition band.
A. Answer: 660 Hz
B. Answer: 600 Hz 0.13
C. Answer: 560 Hz
D. Answer: 680 Hz
E. None
b 0.33 f0.33 2000
660177
14. Consider the problem of using the windowing method to design a lowpass filter to
meet the following specifications. Get the order of the filter if Blackman window is
selected.
A. Answer: m = 28
5 5
5 Egfr
7 0.1
5
m 55
B. Answer: m = 54
C. Answer: m = 47
D. Answer: m = 16
E. None
15. linear-phase FIR filter is designed with the windowing method using the Hanning
window. The filter meets its transition bandwidth specification of 200 Hz exactly with
a filter of order m = 30. What is the sampling rate, fs?
A. Answer: 1935.5 Hz
B. Answer: 1857.9 Hz
C. Answer: 1681.0 Hz
5
29 l 209
D. Answer: 1524.2 Hz 1935.547
E. None
16. Consider the problem of designing a type 1 linear-phase bandpass FIR filter using the
frequency sampling method. Suppose the filter order is m = 60. Find a simplified
expression for the filter coefficients using the following ideal design specifications.
A 045k 1s
f
A. Answer: Line 5
B.
C.
Answer: Line 4
Answer: Line 3
fcf 0.21
D.
E.
Answer: Line 2
Answer: Line 1
0.21
cfC
F. None
A octficu
1 4 451 12
2181230
Bandstop
A 1 OCISK Is
ftp.cfc 0.29s
1 0.21 C 12
of
oct Cu
if
cal Eicos
b
f