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

    function b = isspecmet(this, Hd)
%ISSPECMET   True if the object is specmet.

%   Copyright 2006 The MathWorks, Inc.

for i=1:length(Hd),
    m = measure(Hd(i));
    [F,A] = getmask(this,maskutils(this,1));

    b(i) = true;
    n = length(m.Magnitudes);
    if any(A(1:n)<m.Magnitudes)
        b(i) = false;
    end
    if any(A(n+2:end)>m.Magnitudes)
        b(i) = false;
    end
end

% [EOF]