Friday, 22 April 2016

FIR filter design using windowing method

The aim of the experiment was to design digital filter using windowing method and study the spectrum. The input parameters were passband attenuation(Ap), stopband attenuation(As), passband frequency(Fp), stopband frequency(Fs) and sampling frequency(F). The magnitude and phase spectrum for LPF and BPF using Hanning window were plotted. 
The observed and calculated values of Ap and As were compared. Thus, the values were verified. The phase spectrum was observed to be linear.
Link for the code:
https://drive.google.com/file/d/0B9FCQ_loE3PaNnNxUmdreFBrVzg/view?usp=sharing

4 comments:

  1. Can your program provide other window function options like hamming, blackman etc ??

    ReplyDelete
  2. Yes. The window function depends upon the value of As and Ap. SO accordingly we can change the window function.

    ReplyDelete
  3. blackman window is best due to high attenuation.

    ReplyDelete
  4. A window function is required to truncate infinite samples of hd(n).

    ReplyDelete