xor - exclusive or |
C = xor(A,B) Input A, B: input arrays Output C: resulting boolean array |
"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. |
A = [0 0 %pi %eps] B = [0 -6.9 0 1 ] |
C = xor(A,B) C = | F T T F | |
Ricardo Fabbri <rfabbri@if.sc.usp.br> |
The latest version of the Scilab Image Processing toolbox can be found at |
http://siptoolbox.sourceforge.net |
and, or |