www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fdesign/@lowpass/getnoiseshapefilter.m

    function nsf = getnoiseshapefilter(this,nnsf,cb)
%GETNOISESHAPEFILTER Get the noiseshapefilter.

%   Copyright 2008 The MathWorks, Inc.

bw = 8; %future enhancement: adjust this
f = [0 cb(1)/bw cb(1) 1];
a = [1 1 0 0];
nsf = firpm(nnsf,f,a);

% [EOF]