Você está na página 1de 1

The frequency sampling method allows us to design recursive and non-recursive FIR

filters for both standard frequency selective and filter with arbitrary frequency response.
Let h(n) is the filter coefficients of an FIR filter and H(K) is the DFT of h(n). Then we
have
𝑗2𝜋𝑘𝑛
1
h(n)=𝑁 ∑𝑁−1
𝑘=0 𝐻(𝐾) 𝑒 𝑁 n=0,1,2,3,..........,N-1 .........(1)
𝑗2𝜋𝑘𝑛

and H(K)=∑𝑁−1
𝑛=0 ℎ(𝑛) 𝑒 𝑁 k=0,1,2,3,..........,N-1. .........(2)
The DFT samples H(K) for an FIR sequence can be regarded as samples of the Filter Z-
Transform evaluated at N-points equally spaced around the unit circle, i.e.
𝑗2𝜋𝑘𝑛
H(K)=H(z)|𝑧 = 𝑒 .........(3)
𝑁

The Transfer Function H(Z) of an FIR filter with impulse response is given by

H(z)=∑𝑁−1
𝑛=0 ℎ(𝑛) 𝑧
−𝑛
.........(4)
Substituting Equation (1) in equation (3) we get
1−𝑧 −𝑛 𝐻(𝑘)
H(z)= ∑𝑁−1
𝑘=0 𝑗2𝜋𝑘𝑛
𝑁
1−𝑒 𝑁 𝑧 −1

we Know
2𝜋𝑘
H(𝑒 𝑗𝑤 )|w= =H(𝐾)
𝑁

That is H(K) is 𝐾 𝑡ℎ 𝐷𝐹𝑇component obtained by sampling the frequency response H(𝑒 𝑗𝑤 ).


As such this approach for designing FIR filter is called frequency sampling Method.

Algorithm:
 Define given Specifications (N, 𝜔𝑐 )
 Divide Frequency axis in N-equidistant points
2∗𝜋
𝜔 = 0: : 2 ∗ 𝜋 − 0.001;
𝑁
 Calculate Hd(𝑒 𝑗𝜔 ) for each value of 𝜔 as per specifications
 Take inverse DFT using IFFT
 Plot the frequency response using freqz command (Plot both magnitude and phase)

Você também pode gostar