show how to get the answer Design a notch filter to meet the
show how to get the answer.
Design a notch filter to meet the following specifications: The center frequency of the rejection band is at 60 Hz and the 3 dB rejection bandwidth is 10 Hz. The minimum loss for 59 Hz lessthanorequalto f lessthanorequalto 61 Hz is 40 dB The passband degradation is at most 0.1 dB for f Greaterthanorequalto 75 Hz and for f lessthanorequalto 20 Hz. Find the minimum order Butterworth bandpass filter to meet all the requirements. Find the transfer function of the desired filter.Solution
clear all;
close all;
x=input(\'enter the sequence\');
subplot(3,1,1);
stem(x);
xlabel(\'time\');
ylabel(\'magnitude\');
title(\'input sequence\');
N=length(x);
y=(zeros(1,N));
x=bitrevorder(x);
q=1;
for m=1:1:(log(N)/log(2))
for n=1:1:N/2^m
for p= 1:1:2^(m-1)
a=x(q);
b=x(q+2^(m-1));
y(q)=a+b;
y(q+2^(m-1))=(a-b)*exp(-i*2*pi*(p-1)/2^m);
q=q+1;
end
q=2*m*n+1;
end
q=1;
for t=1:1:N
x(t)=y(t);
end
end
y=bitrevorder(x);
subplot(3,1,2);
stem(abs(y));
xlabel(\'time\');
ylabel(\'amplitude\');
title(\'magnitude\');
subplot(3,1,3);
stem(angle(y));
xlabel(\'angle\');
ylabel(\'amplitude\');
title(\'angle of DIF-FFT\');
disp(y);
gtext(\'kluniversity\')
