How to find out roll-off from magnitude response of filter in matlab
조회 수: 11 (최근 30일)
이전 댓글 표시
How to find out roll-off from magnitude response of filter in matlab?
This is from doc frequency response of matlab site
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/747369/image.png)
댓글 수: 0
답변 (1개)
Chunru
2021년 9월 23일
fs = 2000;
[b,a] = butter(9,400/(fs/2));
[h, f] = freqz(b,a,16384,fs);
h = 20*log10(abs(h));
[~, i3db] = min(abs(h - 10*log10(1/2)));
f3db = f(i3db);
plot(f, h);
xline(f3db)
grid on
ylim([-60 0])
댓글 수: 8
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Design에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!