www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcfoundation/@pointerinterface/isequal.m
function OK = isequal(obj, otherObj) %ISEQUAL True if two pointerinterfaces contain the sane pointer. % % OUT = ISEQUAL( POINTERINTERFACE1, POINTERINTERFACE2 ) % % See also XREGPOINTER/ISEQUAL. % Copyright 2004-2005 The MathWorks, Inc. OK = false; if isa(otherObj, 'mbcfoundation.pointerinterface') && isequal(size(obj), size(otherObj)) nThis = double(obj.Pointer); nOther = double(otherObj.Pointer); % Are the double values the same and not null OK = isequal(nThis, nOther) & nThis ~= 0; end