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

    function ptrs = getptrs(v)
%GETPTRS Return pointers in object
%
%  PTRS = GETPTRS(OBJ) returns all of the pointers used by the expression.
%  This method recurses down the expression tree.

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


ptrs = pveceval(v.Inputs(~isnull(v.Inputs)), @getptrs);
ptrs = cat(1, v.Inputs(:), ptrs{:});