HOW TO DESIGN A BANDPASS FILTER

조회 수: 1 (최근 30일)
raj
raj 2012년 3월 30일
I need to design a bandpass filter with sampling rate of 10kHz and bandpass of 0 to 1kHz and then insert a signal my signal in the filter can any one give the syntax for it

채택된 답변

Wayne King
Wayne King 2012년 3월 30일
You need a lowpass filter. You can use fdesign.lowpass. There are many possible specification strings. You have not stated all your specs, like how many dB of attenuation you wish to have. I'll create an example with 50 dB and obtain both an FIR filter (Hd1) and an IIR filter(Hd2)
d = fdesign.lowpass('Fp,Fst,Ap,Ast',1000,1200,0.5,50,1e4);
Hd1 = design(d,'equiripple');
Hd2 = design(d,'butter');
t = 0:1e-4:1;
x = cos(2*pi*500*t)+0.5*cos(2*pi*2000*t)+randn(size(t));
out = filter(Hd1,x);
% or out = filter(Hd2,x);
  댓글 수: 3
Rob Graessle
Rob Graessle 2012년 3월 30일
Because the passband begins at 0 Hz, that makes it a lowpass filter.
Wayne King
Wayne King 2012년 3월 30일
Exactly what Rob said.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Filter Design에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by