www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/cgidentifyconsts.m

    function consts = cgidentifyconsts(tableptr,featureptr)
%CGIDENTIFYCONSTS Identifies inputs to the feature which are not inputs to the table.
%
% consts = cgidentifyconsts(tableptr, featureptr)

%  Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc.


tinports = tableptr.getinports;
finports = featureptr.getinports;
modelptr = featureptr.get('model');
if ~isempty(modelptr)
    finports = [finports modelptr.getinports];
    finports = unique(finports);
end

consts = finports(cgisindependentvars(finports, tinports));