N 44 FC 1/4 (3.4+ (0.6/2) ) WN Hamming (N) HN Fir1 (N-1, FC, WN)
N 44 FC 1/4 (3.4+ (0.6/2) ) WN Hamming (N) HN Fir1 (N-1, FC, WN)
4
1. Filter specifications
- Stopband attenuation - 50dB
- Passband edge frequency – 3.4 kHz
- Transition width – 0.6 kHz
- Sampling frequency – 8 kHz
0.6
Normalized transition width ¿ ∆ f = =0.075
8
3.3
Number of coefficients ¿ N= =44
0.075
Coefficients are calculated using following Matlab program.
N=44;
fc=1/4*(3.4+(0.6/2));
wn=hamming(N);
hn=fir1(N-1,fc,wn);
Calculated Coefficients
Question 7.5
1. The frequency response of the given symmetric FIR filter is
(N −1)/ 2
− jω(N −1)/2 N
H ( ω ) =e ∑ a( n)cos (ωn) , where a ( n )=2 h( −n)
n=0 2
Since its phase response satisfies the condition θ ( ω )=−αω , where α =(N−1)/ 2. Therefore it
has both constant group and contant phase delay.
2. Filter specifications
- Passband - 12-16 kHz
- Transition width – 3kHz
- Sampling frequency – 96 kHz
- Passband ripple - 0.01dB
- Stopband attenuation - 80dB
b) The ratio of δP to δs is 11.5. Therefore suitable weights for filter band can be [11.5 1 11.5] or
[23 2 23].
c) The vector of normalized bandedge frequencies is [0 0.09375 0.125 0.1667 0.1979 0.5]
The weighting function specifies the relative importance of each band. It allows a trade-off between
the passband ripple and stopband attenuation. The grid frequencies are the frequency points at
which the frequency response is checked to see whether the optimality condition has been satisfied.
The suitable grid density for above problem can be 32.