www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgoptimnode/getduplicationptrs.m
function pDup = getduplicationptrs(nd) %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 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. % cgoptim has several pointers that are duplicated from within the optim % object pOpt = getdata(nd); pDup = [address(nd), pOpt, getInternalPtrs(pOpt.info), nd.OutputData, children(nd)];