Butterworth Filter Coefficeints
Butterworth Filter Coefficeints
Butterworth Filter Coefficeints
Filter
Coefficeints
order: 1 2 3 4 5 6 7
coefficients
go 1 1 1 1 1 1 1
g6 1 0.517638 1.24698
g7 1 0.445042
g8 1
order: 8 9 10 11 12 13 14
coefficients
go 1 1 1 1 1 1 1
g14 1 0.223929
g15 1
order: 15 16 17 18 19 20
coefficients
go 1 1 1 1 1 1
g1 0.209057 0.196034 0.184537 0.174311 0.165159 0.156918
g2 0.618034 0.580569 0.547326 0.517638 0.490971 0.466891
g3 1 0.942793 0.891477 0.845237 0.803391 0.765367
g4 1.338261 1.268787 1.205269 1.147153 1.093896 1.044997
g5 1.618034 1.546021 1.478018 1.414214 1.354563 1.298896
g6 1.827091 1.763843 1.700434 1.638304 1.578281 1.520812
g7 1.956295 1.913881 1.864944 1.812616 1.758948 1.70528
g8 2 1.990369 1.965946 1.931852 1.891634 1.847759
g8 1.956295 1.990369 2 1.992389 1.972723 1.94474
g10 1.827091 1.913881 1.965946 1.992389 2 1.993835
g11 1.618034 1.763843 1.864944 1.931852 1.972723 1.993835
g12 1.338261 1.546021 1.700434 1.812616 1.891634 1.94474
g13 1 1.268787 1.478018 1.638304 1.758948 1.847759
g14 0.618034 0.942793 1.205269 1.414214 1.578281 1.70528
g15 0.209057 0.580569 0.891477 1.147153 1.354563 1.520812
g16 1 0.196034 0.547326 0.845237 1.093896 1.298896
g17 1 0.184537 0.517638 0.803391 1.044997
g18 1 0.174311 0.490971 0.765367
g19 1 0.165159 0.466891
g20 1 0.156918
g21 1
BY,
Ignatius Praveen
108108101
MATLAB CODE:
function [x]= butter1(n)
% m stands for the order
% To use this function save it in the current
directory.
% Call it by typing "y=butter1(n)" in the command
%window.
% (specify n).
x(1)=1; % First coefficient.It's always 1.
x(n+2)=1; % Last coefficient, which is also 1.
for i=2:1:(n+1) % Calculate each coefficient for a
given order.
x(i)=2*sin((2*(i-1)-1)*pi/(2*n)); % Calculating the
coefficients.
end
end
1) Butterworth filter
Formulae used:
go = 1
gn+1 = 1
where gk are the filter coefficients. n is the order of the filter to be designed.
Chebychev Filter Coefficients (Assuming Am=17.37)
order: 1 2 3 4 5 6 7
coefficients
g0 1 1 1 1 1 1 1
g6 1 0.199614 0.284359
g7 0.004621 10.26434
g8 1
2) Chebychev filter
Formulae used:
g0=1
g1=2a1 / V;
gn+1 = 1 if n is odd
B = ln (coth (Am/17.37))
V = sinh (B/(2*pi))
B=log(coth(Am/17.37));
V=sinh(B/(2*pi));
x(1)=1;
if rem(m,2)==0
x(m+2)=(tanh(B/4))^2;
else x(m+2)=1;
end
for i=1:1:m
a(i)=sin((((2*i)-1)*pi)/(2*m));
b(i)=(V^2)+((sin((i*pi)/m))^2);
end
x(2)=(2*a(1))/V;
for j=3:1:m+1
x(j)=(4*(a(j-2))*(a(j-1)))/((b(j-2))*(x(j-1)));
end
end