📄 butt.m
字号:
%Butterworth Filter
clc;
wp=input('Enter the pass band frequency ');
ws=input('Enter the stop band frequency ');
p=input('Enter the pass band attenuation ');
s=input('Enter the stop band attenuation ');
rp=20.*log(1/p);
rs=20.*log(1/s);
[n,wn]=buttord(wp,ws,rp,rs);
disp('Order of filter ');
disp(n);
disp('Cut-off frequency ');
disp(wp);
[b,a]=butter(n,wn);
title('Butter');
freqz(b,a);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -