📄 program_7_4.m
字号:
% Program 7_4
% Computation of the order of a linear-phase
% FIR lowpass filter using Kaiser's formula
%
dp = input('Type in the passband ripple = ');
ds = input('Type in the stopband ripple = ');
Fp = input('Type in the passband edge in Hz = ');
Fs = input('Type in the stopband edge in Hz = ');
FT = input('Type in the sampling frequency in Hz = ');
num = -20*log10(sqrt(dp*ds))-13;
den = 14.6*(Fs - Fp)/FT;
N = ceil(num/den);
fprintf('Filter order is %d \n',N);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -