# Problem when graphing digital filter chebyshev

조회 수: 2(최근 30일)
SGM SGM 2021년 8월 29일
댓글: Paul 2021년 9월 1일
Hello, I need to design a chebyshev digital filter, with cutoff frequencies of 250 and 2000 Hz, it should cut at 0.7 at these two frequencies. The code I am using does not meet the objectives, it is the following:
Fs = 44000;
Fn = Fs/2;
n = 3; Rp = 0.5;
Wn = [250 2000]/Fn;
[b a]=cheby1(n,Rp,Wn,'bandpass')
[h,w]=freqz(b,a)
plot(w,abs(h))
What I need to graph is what is shown in the image. The order is 3 and the ripple is 0.5 댓글을 달려면 로그인하십시오.

### 답변(1개)

Paul 2021년 8월 29일
Fs = 44000;
Fn = Fs/2;
n = 3; Rp = 0.5;
Wn = [250 2000]/Fn;
[b a]=cheby1(n,Rp,Wn,'bandpass');
[h,f]=freqz(b,a,1024,Fs);
semilogx(f,abs(h)) Adjust n and Rp for the desired result.
##### 댓글 수: 8표시숨기기 이전 댓글 수: 7
Paul 2021년 9월 1일
Do you now have the desired result or is there still an open question? Did you intentionally reduce Fs from 44000 to 4400?

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

R2014b

### Community Treasure Hunt

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

Start Hunting!