www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cglookuptwo/cgimportptr.m
function LT= cgimportptr(LT,RefMap) %CGIMPORTPTR Remap internal pointers during import % % OBJ = cgimportptr(OBJ, REFMAP) % Copyright 2005 The MathWorks, Inc. OK= ismember(LT.SFlist,RefMap{1}); LT.SFlist = LT.SFlist(OK); ind= find(RefMap{1}==address(LT)); NewLT= info(RefMap{2}(ind)); rep= isa(NewLT,'cglookuptwo') && strcmp(getname(NewLT),getname(LT)); LT = mapptr(LT,RefMap); if rep % combine new and old SFlist LT.SFlist= unique([LT.SFlist;NewLT.SFlist]); end