high.m
来自「滤波器的设计以及零极点对应频率响应分析」· M 代码 · 共 30 行
M
30 行
function Hd = high%HIGH Returns a discrete-time filter object.%% M-File generated by MATLAB(R) 7.1 and the Signal Processing Toolbox 6.4.%% Generated on: 13-Oct-2008 16:53:50%% Equiripple Highpass filter designed using the FIRPM function.% All frequency values are in Hz.Fs = 100; % Sampling FrequencyFstop = 0.4; % Stopband FrequencyFpass = 0.5; % 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]/(Fs/2), [0 1], [Dstop, Dpass]);% Calculate the coefficients using the FIRPM function.b = firpm(N, Fo, Ao, W, {dens});Hd = b;% [EOF]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?