Filter löschen
Filter löschen

Analog butterworth bandpass filter design problem

1 Ansicht (letzte 30 Tage)
NTR
NTR am 2 Jun. 2011
Hi, I am using following code to generate bandpass filter with bandwidth from 3GHz to 5GHz.
Can you please give me reason why i am getting spikes or noise for filter frequency response.
clear;clc;
fn1=50e9; % nyquist frequency
wp=[3e9 5e9]/fn1;
ws=[2.8e9 5.2e9]/fn1;
Rp=1;
Rs=80;
[N, Wn]=buttord(wp, ws, Rp, Rs, 's')
[B, A] = butter(N, Wn, 's');
bp_tf=tf(B,A);
figure(10)
wf=(0:1e-4:1);
h=freqs(B,A,wf);
fh=wf*fn1;
plot(fh,20*log10(abs(h)));
h=gca;
set(h,'XLim',[0 10e9],'YLim',[-100 10]);

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by