www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fdesign/@notch/getconstructor.m
function cSpecCon = getconstructor(this, stype) %GETCONSTRUCTOR Return the constructor for the specification type. % Copyright 2006 The MathWorks, Inc. if nargin < 2 stype = this.SpecificationType; end switch lower(stype) case 'n,f0,q', %#function fspecs.notchq cSpecCon = 'fspecs.notchq'; case 'n,f0,q,ap', %#function fspecs.notchqap cSpecCon = 'fspecs.notchqap'; case 'n,f0,q,ast', %#function fspecs.notchqast cSpecCon = 'fspecs.notchqast'; case 'n,f0,q,ap,ast', %#function fspecs.notchqapast cSpecCon = 'fspecs.notchqapast'; case 'n,f0,bw', %#function fspecs.notchbw cSpecCon = 'fspecs.notchbw'; case 'n,f0,bw,ap', %#function fspecs.notchbwap cSpecCon = 'fspecs.notchbwap'; case 'n,f0,bw,ast', %#function fspecs.notchbwast cSpecCon = 'fspecs.notchbwast'; case 'n,f0,bw,ap,ast', %#function fspecs.notchbwapast cSpecCon = 'fspecs.notchbwapast'; otherwise error(message('signal:fdesign:notch:getconstructor:internalError')); end % [EOF]