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

    function v = mapptr(v,RefMap)
%MAPPTR Map pointers method
%
% EXPR = MAPPTR(EXPR,REFMAP) is a non-Recursive call to change any
% instances of pointers in the obejct according to REFMAP.

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


v.Inputs = mapptr(v.Inputs, RefMap);
v.mbcreference = mapptr(v.mbcreference, RefMap);