www.gusucode.com > signal 工具箱matlab源码程序 > signal/@dfilt/@abstractdfsymfir/parse_coeffstoexport.m

    function [hTar,domapcoeffstoports] = parse_coeffstoexport(Hd,hTar)
%PARSE_COEFFSTOEXPORT Store coefficient names and values into hTar for
%export.

%   Copyright 2009 The MathWorks, Inc.

state = hTar.MapCoeffsToPorts;

if strcmpi(state,'on')
    [mapstate coeffnames var] = mapcoeffstoports(Hd,'MapCoeffsToPorts','on',...
                                        'CoeffNames',hTar.CoeffNames);
    % Coefficient names
    hTar.CoeffNames = coeffnames;
    
    % Coefficient values for export
    num = Hd.privNum.';
    max_order = ceil(length(num)/2);
    coeffvar{1} = num(1:max_order);
    setprivcoefficients(hTar,coeffvar);
end

domapcoeffstoports = strcmpi(state,'on');

% [EOF]