www.gusucode.com > signal 工具箱matlab源码程序 > signal/@filtdes/@lpmagfir/maskinfo.m
function cmd = maskinfo(hObj, d) %MASKINFO Return the mask information % Author(s): J. Schickler % Copyright 1988-2002 The MathWorks, Inc. if isdb(d), apass = get(d, 'Apass'); astop = get(d, 'Astop'); astopp = -astop-50; else apass = get(d, 'Dpass'); astop = get(d, 'Dstop'); astopp = -astop; end cmd{1}.magfcn = 'pass'; cmd{1}.amplitude = apass; cmd{1}.filtertype = 'lowpass'; cmd{1}.magunits = get(d, 'magUnits'); cmd{1}.astop = astopp; cmd{2}.magfcn = 'stop'; cmd{2}.amplitude = astop; cmd{2}.filtertype = 'lowpass'; cmd{2}.magunits = get(d, 'magUnits'); % [EOF]