📄 mynotchfilter.m
字号:
function [B,A] = mynotchfilter(N,cutoff,R,Fs),
%MYNOTCHFILTER Returns a discrete-time filter object
%
% M-File generated by MATLAB(R) 7.0.1 and the Signal Processing Toolbox 6.2.1.
%
% Generated on: 28-Aug-2005 18:31:52
%
% Chebyshev Type II Bandpass filter designed using FDESIGN.BANDPASS.
% All frequency values are in Hz.
Fs = 8192; % Sampling Frequency
Fstop1 = cutoff-10; % First Stopband Frequency
Fpass1 = cutoff-1; % First Passband Frequency
Fpass2 = cutoff+1; % Second Passband Frequency
Fstop2 = cutoff+10; % Second Stopband Frequency
Astop1 = 60; % First Stopband Attenuation (dB)
Apass = 1; % Passband Ripple (dB)
Astop2 = 60; % Second Stopband Attenuation (dB)
match = 'passband'; % Band to match exactly
Wn=[2*Fpass1/Fs 2*Fpass2/Fs];
[B,A]=cheby2(N,20,Wn);
% [EOF]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -