www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@xregpointer/ne.m
function iseq= ne(p,q) %NE Overloaded ~= operator for pointers % % P~=Q returns true is P and Q point to different locations on the heap. % A pointer can be compared with another pointer or to 0 to test whether % it is not a null pointer. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if isa(p,'xregpointer') p=double(p); else if p~=0 error(message('mbc:xregpointer:InvalidComparison')) end end if isa(q,'xregpointer') q=double(q); else if q~=0 error(message('mbc:xregpointer:InvalidComparison')) end end iseq= p~=q;