📄 highpass.m
字号:
function Hd = highpass%HIGHPASS Returns a discrete-time filter object%% M-File generated by MATLAB(R) 7.0 and the Signal Processing Toolbox 6.2.%% Generated on: 22-Feb-2005 16:58:00%% Equiripple Highpass filter designed using the FIRPM function.% All frequency values are normalized to 1.Fstop = 0.15; % Stopband FrequencyFpass = 0.2; % Passband FrequencyDstop = 0.0001; % Stopband AttenuationDpass = 0.057501127785; % Passband Rippledens = 20; % Density Factor% Calculate the order from the parameters using FIRPMORD.[N, Fo, Ao, W] = firpmord([Fstop, Fpass], [0 1], [Dstop, Dpass]);% Calculate the coefficients using the FIRPM function.b = firpm(N, Fo, Ao, W, {dens});Hd = dfilt.dffir(b);% [EOF]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -