www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fdesign/@decimator/validate_iir_designmethod.m
function validate_iir_designmethod(this,designMethod) %VALIDATE_IIR_DESIGNMETHOD % Copyright 2009 The MathWorks, Inc. if this.DecimationFactor > 2 response = this.Response; if strcmpi(response,'nyquist') || strcmpi(response,'halfband') if strcmpi(response(1),'h') response(1) = 'h'; end error(message('signal:fdesign:decimator:validate_iir_designmethod:InvalidDecimFactor', designMethod, response)); end end