www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgfeature/getconstants.m
function C = getconstants(F) %GETCONSTANTS Return cgconstant children of this node % % C = GETCONSTANTS(F) returns the cgconstants that are in this feature % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. ptrs = F.eqexpr; if ~isempty(ptrs) ptree = ptrs.getAllInputs; ptrs = [ptrs; ptree(:)]; end ptrs = unique(ptrs); if ~isempty(ptrs) const = pveceval(ptrs, @isa, 'cgconstant'); C = ptrs([const{:}]); else C = null(xregpointer, [0,1]); end