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

📄 kaiord.m

📁 数字信号处理试验指导书(sourcecode)
💻 M
字号:
function N = kaiord(Fp, Fs, Rp, Rs, FT)
% Computation of the length of a linear-phase
% FIR multi-band filter using Kaiser's formula
% 
% Rp is the passband ripple
% Rs is the stopband ripple
% Fp is the passband edge in Hz
% Fs is the stopband edge in Hz
% FT is the sampling frequency in Hz.  
% If none specified default value is 2
% N is the estimated FIR filter order
if nargin == 4,
	FT = 2;
end
if length(Fp) > 1,
	TBW = min(abs(Fp(1) - Fs(1)), abs(Fp(2) - Fs(2)));
else
	TBW = abs(Fp - Fs);
end
num = -20*log10(sqrt(Rp*Rs))-13;
den = 14.6*TBW/FT;
N = ceil(num/den);

⌨️ 快捷键说明

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