Friday, 22 April 2016

Exp-8 FIR using window function

In this experiment, we designed a linear phase FIR filter - low pass and band pass. We plotted the magnitude and phase plot of both the filters.  In this method, the desired impulse response is multiplied with window function w(n) to obtain h(n) which after Z-transfrom yields the transfer function H(z).
The Input specifications are Pass band frequency,Stop band frequency, Pass band attenuation, Stop band attenuation, Sampling frequency. Selection of window depends on Stop band attenuation in dB.The window function i used was Hamming window.The phase  plot being linear, there will be no distortion at the output. We later also observed attenuation in stop band is maximum for Blackman window and minimum for Rectangular window.

As we go on increasing As, depending upon filter, side lobe width decreases with increasing main lobe width.

We faced some difficulty in getting the coefficients and phase plot in the same scilab code so we wrote the c code for getting the h(n) coefficients and using these coefficients we plotted the phase plot in a separate scilab program. Term tests were on the line. Even last moment assignments caused us a delay. 
codes can be found at:- https://drive.google.com/open?id=0Bzfvoo_rjoa8S19TN2V1SE9kckk


10 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. so is blackman window best for filter design

    ReplyDelete
    Replies
    1. Yes though it is better the computational effort required is more. The selection of a specific window depends on your own specifications of stop band attenuation that is specified by the user.

      Delete
  3. yup thats what we observed

    ReplyDelete
  4. Because attenuation in stopband is most for blackman window function

    ReplyDelete
  5. As of window function should be higher than that of filter.

    ReplyDelete
  6. Rectangular window is rarely used for truncation as As is very low as compared to other window functions.

    ReplyDelete
  7. As of rectangular function is only 21

    ReplyDelete
  8. The window method is based on calculating the impulse response of an ideal digital filter, which is IIR, and on using a window to obtain a finite impulse response. The characteristics of the FIR filter depends on the chosen window. One of the most interesting properties you can get is linear phase.

    ReplyDelete
  9. thank you for giving value by using rectangular window

    ReplyDelete