www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fspecs/@hbmin/measureinfo.m

    function minfo = measureinfo(this)
%MEASUREINFO   Return a structure of information for the measurements.

%   Author(s): J. Schickler
%   Copyright 2005 The MathWorks, Inc.

tw = get(this, 'TransitionWidth');
astop = get(this, 'Astop');
apass = convertmagunits(convertmagunits(astop, 'db', 'linear', 'stop'), 'linear', 'db', 'pass');

if this.NormalizedFrequency, fs = 2;
else,                        fs = this.Fs; end

minfo.Fpass = fs/4-tw/2;
minfo.Fstop = fs/4+tw/2;

minfo.Apass = apass;
minfo.Astop = astop;

% [EOF]