IIR FILTER DESIGN
#1

Procedure:-
1) Get the pass band and stop band edge frequencies
2) Get the pass band and stop band ripples
3) Get the sampling frequency
4) Get the order of the filter
5) Find the filter coefficients
6) Plot the magnitude response

MATLAB program for IIR filter
Code:
clear
clc
close all

% ENTER THE PASSBAND FREQUENCY in hz
wp = 500;
% ENTER THE STOPBAND FREQUENCY in hz
ws = 2000;
% ENTER THE PASSBAND RIPPLE & STOPBAND ATTENUATION
Rp = 3;
Rs = 20;
% ENTER THE SAMPLING FREQUENCY
Fs = 8000;
%NORMALIZED  SAMPLING FREQUENCY = Fs/2
Fn = Fs/2;
% DESIGN THE ANALOG BUTTERWORTH FILTER ORDER AND CUT-OFF FREQUENCY
[N,wc] = buttord(wp/Fn, ws/Fn, Rp, Rs);

% Design the digital filter coeffecients
[b,a] = butter(N,wc)
% Display the frequency response of the digital filter coeffecients
[H,f] = freqz(b,a,512,8000);
plot(f,20*log10(abs(H)))


RESULT: - IIR FILTER DESIGN
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: verilog code for iir filter, two band hybrid fir iir filters for image compression matlab, design of ac filter with pspice simulation, iir filter c code, microwave filter design ppt, iir filter in c, iir verilog code,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  C PROGRAM TO IMPLEMENT FIR FILTER seminar class 0 2,671 06-05-2011, 04:09 PM
Last Post: seminar class
  Mat Lab Program to Generate ‘FIR Filter-Low Pass’ Coefficients seminar class 0 1,552 06-05-2011, 03:59 PM
Last Post: seminar class
  USING MATLAB TO DETERMINE FILTER COEFFICIENTS: Using FIR1 Function on Matlab seminar class 0 2,308 06-05-2011, 03:58 PM
Last Post: seminar class
  FINITE IMPULSE RESPONSE FILTER (FIR) seminar class 0 1,279 06-05-2011, 03:57 PM
Last Post: seminar class
  FIR FILTER DESIGN seminar class 0 1,455 06-05-2011, 03:43 PM
Last Post: seminar class

Forum Jump: