www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fdesign/@isinchp/multiratedefaults.m
function multiratedefaults(this, maxfactor) %MULTIRATEDEFAULTS Setup the isinchp object for multirate. % Copyright 2011 The MathWorks, Inc. if maxfactor == 1 fs = 0.45; fp = 0.55; else fs = 1 - 1/maxfactor; fp = 1 - .8/maxfactor; end % Scale by the sampling frequency. if ~this.NormalizedFrequency fp = fp*this.Fs/2; fs = fs*this.Fs/2; end this.Fstop = fs; this.Fpass = fp; % [EOF]