www.gusucode.com > signal 工具箱matlab源码程序 > signal/@filtdes/@firlshppassstop/design.m
function Hd = design(h,d) %DESIGN Method to design the filter given the specs. % Author(s): R. Losada, J. Schickler % Copyright 1988-2002 The MathWorks, Inc. args = getarguments(h, d); N = get(d, 'Order'); opt = {}; if rem(N,2), % Design a type 4 filter opt = {'Hilbert'}; end b = firls(N, args{:}, opt{:}); % Construct object Hd = dfilt.dffir(b); % [EOF]