www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcreference/releaseaddress.m

    function r = releaseaddress(r)
%RELEASEADDRESS Release the pointer address that the object uses
%
%  R = RELEASEADDRESS(R) frees the pointer that R uses for its dynamic
%  copy.  The address of R is set to a null pointer.

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


freeptr(r.Pointer);
r.Pointer = mbcpointer(1);