Analog butterworth bandpass filter design problem
조회 수: 1 (최근 30일)
이전 댓글 표시
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]);
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Analog Filters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!