Home > classes > @pzmodel > ne.m

ne

PURPOSE ^

NE overloads the ~= operator for pzmodel objects.

SYNOPSIS ^

function result = ne(p1, p2, varargin)

DESCRIPTION ^

 NE overloads the ~= operator for pzmodel objects.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: NE overloads the ~= operator for pzmodel objects.

 CALL:        result = ne(p1,p1)
              result = ne(p1,p2,  exc_list)
              result = ne(p1,p2, 'property1', 'property2')
              result = ne(p1,p2, 'class/property', 'class/property')

 INPUTS:      p1,p2 - input pzmodel objects

 OUTPUTS:     If the two pzmodel objects are considered equal, result == 0,
              otherwise, result == 1.

 VERSION:     $Id: ne.m,v 1.3 2008/01/14 20:03:52 ingo Exp $

 HISTORY:     29-08-2007 M Hewitson
                 Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function result = ne(p1, p2, varargin)
0002 % NE overloads the ~= operator for pzmodel objects.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: NE overloads the ~= operator for pzmodel objects.
0007 %
0008 % CALL:        result = ne(p1,p1)
0009 %              result = ne(p1,p2,  exc_list)
0010 %              result = ne(p1,p2, 'property1', 'property2')
0011 %              result = ne(p1,p2, 'class/property', 'class/property')
0012 %
0013 % INPUTS:      p1,p2 - input pzmodel objects
0014 %
0015 % OUTPUTS:     If the two pzmodel objects are considered equal, result == 0,
0016 %              otherwise, result == 1.
0017 %
0018 % VERSION:     $Id: ne.m,v 1.3 2008/01/14 20:03:52 ingo Exp $
0019 %
0020 % HISTORY:     29-08-2007 M Hewitson
0021 %                 Creation
0022 %
0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0024 
0025 VERSION  = '$Id: ne.m,v 1.3 2008/01/14 20:03:52 ingo Exp $';
0026 
0027 % Check if this is a call for parameters
0028 if nargin == 2
0029   if isa(p1, 'pzmodel') && ischar(p2)
0030     in = char(p2);
0031     if strcmp(in, 'Params')
0032       result = plist();
0033       return
0034     elseif strcmp(in, 'Version')
0035       result = VERSION;
0036       return
0037     end
0038   end
0039 end
0040 
0041 if eq(p1, p2, varargin{:})
0042   result = 0;
0043 else
0044   result = 1;
0045 end
0046 
0047 % END

Generated on Tue 22-Jan-2008 10:39:13 by m2html © 2003