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

    function pDup = getduplicationptrs(T)
%GETDUPLICATIONPTRS Return the pointers required for duplicating a node
%
%  P_DUP = GETDUPLICATIONPTRS(T) returns a (1xn) xregpointer vector
%  containing the pointers that need to be duplicated when the tree node
%  is copied.  

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


% cgmodelnode returns only its model and any pointers that uses, but not
% the expression inputs to it.
pM = getdata(T);
pDup = [pM, pM.getInternalPtrs, address(T), children(T)];