mynotchfilter.m

来自「基于MATLAB的DTMF拨号演示文件」· M 代码 · 共 30 行

M
30
字号
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 + =
减小字号Ctrl + -
显示快捷键?