www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgnormfunction/getptrs.m

    function ptrlist = getptrs(NF)
%GETPTRS Return pointers from object
%
%	PTRS = GETPTRS(OBJ) is a recursive call to return xregpointers
%	contained in this object and all it points to.
%	For a cgnormfunction the only xregpointer is in the Xexpr field.

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


P=NF.Xexpr;
if ~isempty(P) && ~isnull(P)
    ptrlist = [getptrs(NF.cglookup); P ; getptrs(info(P))];
else
    ptrlist = getptrs(NF.cglookup);
end