Navigation

Operators and Keywords

Function List:

C++ API

xor.m File Reference


Functions

else error ("xor: x and y must be of common size or scalars")
endif else print_usage ()
endif endfunction !assert ((xor([1, 1, 0, 0],[0, 1, 0, 1])==[1, 0, 0, 1]%!&&xor([i, i, 0, 0],[1, 0, 1, 0])==[0, 1, 1, 0]))
 !assert (all(all(xor(eye(2), fliplr(eye(2)))==ones(2))))
!error xor ()
!error xor (1, 2, 3)

Variables

function z

Function Documentation

!assert ( all(all(xor(eye(2), fliplr(eye(2)))==ones(2)))   ) 

endif endfunction !assert ( (xor([1, 1, 0, 0],[0, 1, 0, 1])==[1, 0, 0, 1]%!&&xor([i, i, 0, 0],[1, 0, 1, 0])==[0, 1, 1, 0])   ) 

else error ( "xor: x and y must be of common size or scalars"   ) 

endif else print_usage (  ) 

!error xor ( ,
,
 
)

!error xor (  ) 


Variable Documentation

Initial value:

 xor (x, y)

  if (nargin == 2)
    if (isscalar (x) || isscalar (y) || size_equal (x, y))
      z = logical ((x | y) - (x & y))