Home > classes > @mfir > ne.m

ne

PURPOSE ^

NE overloads the ~= operator for mfir objects.

SYNOPSIS ^

function result = ne(f1, f2, varargin)

DESCRIPTION ^

 NE overloads the ~= operator for mfir objects.

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

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

 CALL:        result = ne(f1,f1)
              result = ne(f1,f2, 'property1', 'property2')
              result = ne(f1,f2, 'class/property', 'class/property')

 INPUTS:      f1,f2 - input mfir objects

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

 VERSION:     $Id: ne.m,v 1.2 2007/12/06 17:09:15 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(f1, f2, varargin)
0002 
0003 % NE overloads the ~= operator for mfir objects.
0004 %
0005 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0006 %
0007 % DESCRIPTION: NE overloads the ~= operator for mfir objects.
0008 %
0009 % CALL:        result = ne(f1,f1)
0010 %              result = ne(f1,f2, 'property1', 'property2')
0011 %              result = ne(f1,f2, 'class/property', 'class/property')
0012 %
0013 % INPUTS:      f1,f2 - input mfir objects
0014 %
0015 % OUTPUTS:     If the two mfir objects are considered equal, result == 0,
0016 %              otherwise, result == 1.
0017 %
0018 % VERSION:     $Id: ne.m,v 1.2 2007/12/06 17:09:15 ingo Exp $
0019 %
0020 % HISTORY:     29-08-2007 M Hewitson
0021 %                 Creation
0022 %
0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0024 
0025 VERSION  = '$Id: ne.m,v 1.2 2007/12/06 17:09:15 ingo Exp $';
0026 
0027 % Check if this is a call for parameters
0028 if nargin == 2
0029   if isa(f1, 'mfir') && ischar(f2)
0030     in = char(f2);
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(f1, f2, 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