www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgvariable/clone.m
function obj = clone(obj) %CLONE Clone the reference object % % R2 = CLONE(R) creates a copy of R that has had its reference pointer % deep-copied. This means that the new reference object, R2, will contain % a new pointer address that points to a copy of the object in R. % % cgvariable items clear their stored data as they are cloned. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. obj.cgexpr = clone(obj.cgexpr); obj.BackupValue = {}; obj.BackupGUIDs = guidarray; xregpointer(obj);