MATLAB Program for IIR(Infinite Impulse Response) Band Pass Filter using the Window function | IT1254 - DSP and Communications Systems Lab


AIM:
        To write a program for IIR(Infinite Impulse Response) band pass filter using the window function using MATLAB in IT1254 - DSP and Communications Systems Lab.

ALGORITHM:
Step 1: Start
Step 2: Read the pass band ripple
Step 3: Read the stop band ripple
Step 4: Read the pass band frequency
Step 5: Read the stop band frequency
Step 6: Read the sampling band frequency
Step 7: Perform band pass filter calculations
Step 8: Plot the output sequence
Step 9: Stop

PROGRAM:
clc;
close all;
clear all;
format long;
rp=input('Enter the passband ripple(rp):');
rs=input('Enter the stopband ripple
(rs):');
fp=input('Enter the passband frequency(fp):');
fs=input('Enter the stopband frequency(fs):');
f=input('Enter the sampling frequency(f):');
wp=2*fp/f;
ws=2*fs/f;
[n]=buttord(wp,ws,rp,rs);
wn=[wp,ws];
[b,a]=butter(n,wn,'bandpass');
w=0:0.01:pi;
[h,o]=freqz(b,a,w);
m=20*log10(abs(h));
an=angle(h);
subplot(2,1,1);
plot(o/pi,m);
ylabel('Gain(db)->');
xlabel('(a)Normalised frequency->');
subplot(2,1,2);
plot(o/pi,an);
ylabel('Phase(radians)->');
xlabel('(b)Normalised frequency->');
OUTPUT:

Click to view full size image!

RESULT:
Thus the program for FIR Filter IIR band pass filter was performed using MATLAB and the output sequences were drawn.
Previous
Next Post »

1 comments:

Write comments
john
AUTHOR
September 2, 2017 at 11:25 AM delete

This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. Jammu Kashmir Ration Card Status

Reply
avatar

If you still didn't find what you're looking for, you can search this website below: