DSP EXP 7


EXP NO 7
TITLE: DESIGN BUTTERWORTH FILTER USING METHOD FOR LPF AND WRITE A PROGRAM TO DRAW FREQUENCY RESPONSE OF BILINEAR TRANSFER FUNCTION


clc;
clear all;
close all;
Rp=input('Enter the passband ripple');
Rs=input('Enter the stopband ripple');
Wp=input('Enter the papassband h frequency band ripple');
Ws=input('Enter the stopband h frequency band ripple');
T=0.1;
[n,Wn] = buttord(Wp,Ws,Rp,Rs);
disp('Value of n and Wn');
disp([n,Wn])
disp('Value of Wc');
wc=(2/T)*tan(Wn*3.14/2);
disp(wc)
[b,a]=butter(n,wc,'s');
disp([b,a])
[b1,a1]=bilinear(b,a,1/T);
disp([b1,a1])
fvtool(b1,a1)



%Enter the passband ripple4.46
%Enter the stopband ripple20
%Enter the papassband h frequency band ripple0.35
%Enter the stopband h frequency band ripple0.7


Previous Post Next Post