⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notch.m

📁 It is the code to demonstrate actof filtering
💻 M
字号:
%2瞒 IIR notch filter 拌荐 备窍扁
%[bi,ai]=notch(band,notch_frequency,sampling)


function[bi,ai]=notch(band,notch_frequency,sampling)
fs=sampling;             % sampling freq.
fo=notch_frequency/(fs/2);      % notch center freq.
df=band;                % notch bandwidth
r=1-(pi/2)*(df/(fs/2));
bi=[ 1,  -2*cos(fo*pi),  1];
ai=[ 1,  -2*r*cos(fo*pi),  r^2 ];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -