Name

xor — Exclusive or

Calling Sequence

C = xor(A,B)

Parameters

A, B
Input arrays

Parameters

C
resulting boolean array

Description

"xor" is a simple convenience function to calculate the exclusive OR logical operator on the corresponding elements of the input arrays. The resulting element is %f if either the corresponding elements in A or in B are nonzero, but not both.

Examples

      A = [0   0  %pi %eps] 
      B = [0 -6.9  0   1  ]

      C = xor(A,B)
      C =
      |  F  T   T  F  |
   

Authors

Ricardo Fabbri <ricardofabbri (AT) users DOT sf DOT net>

Availability

The latest version of the Scilab Image Processing toolbox can be found at

http://siptoolbox.sourceforge.net

See Also

and , or