www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fspecs/@hpcutoffwfs/cheby2.m
function Hd = cheby2(this, varargin) %CHEBY2 Chebyshev Type II digital filter design. % Copyright 1988-2012 The MathWorks, Inc. N = this.FilterOrder; nfreq = this.NormalizedFrequency; normalizefreq(this, true); Fc = this.F3dB; Fst = this.Fstop; normalizefreq(this, nfreq); [isvalid, errmsg, errid] = checkincfreqs(this,{'Fstop','F3dB'}); if ~isvalid error(message(errid,errmsg)); end % Compute analog frequency Wc = 1/tan(pi*Fc/2); % Determine analog stopband edge frequency Wst = 1/tan(pi*Fst/2); % Find estop, Astop est = cosh(N*acosh(Wst/Wc)); Ast = 10*log10(est^2+1); % Convert to highpass with stopband-edge specifications hs = fspecs.hpstop(N,Fst,Ast); Hd = cheby2(hs,varargin{:}); % [EOF]