FIR Filter Design - C C++ Java Programs - Examples

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Thursday, November 10, 2011

FIR Filter Design


FIR Filter Design


AIM:- To design FIR digital filters.

THEORY: - FIR – filter is a finite impulse response filter. Order of the filter  should be specified. Infinite response is truncated to get finite impulse response. placing  a window of finite length does this. Types of windows available are Rectangular, Barlett, Hamming, Hanning, Blackmann window etc. This FIR filter is an all zero filter.

PROGRAM: -

n = 20;
fp = 200;
fq = 300;
fs = 1000;
fn = 2 * fp / fs;
window = Blackman ( n+1 );
b= fir1 ( n, fn , window )                        // low pass filter //
[ h w ] = freqz( b, 1, 128 );
plot( w/pi , abs(h) )


RESULT: -  A LPF is designed using Blackman window.







No comments:

Post a Comment