Table Of Contents

bitxor

Version:
    Last Modified: March 15, 2017

    Computes the bitwise exclusive or of corresponding elements of two input arrays. For example, if a = 5 (101) and b = 9 (1001), bitxor(a,b) = bitxor(5,9) = 12 (1100).

    Syntax

    c = bitxor(a, b)
    c = bitxor(a, b, d)

    Inputs

    a

    Scalar or array of any dimension of integers. If you use c = bitxor(a, b), a is of type uint64. If you use c = bitxor(a, b, d), a is of type d. a and b must have the same shape.

    b

    Scalar or array of any dimension of integers. If you use c = bitxor(a, b), b is of type uint64. If you use c = bitxor(a, b, d), b is of type d. a and b must have the same shape.

    d

    Assumed data type of a and b. d is a string.

    Name Description
    'uint64'

    uint64

    'uint32'

    uint32

    'uint16'

    uint16

    'uint8'

    uint8

    'int64'

    int64

    'int32'

    int32

    'int16'

    int16

    'int8'

    int8

    Outputs

    c

    Bitwise exclusive or of a and b. c is an array of the same size as a and b.

    A = [134, 45, 232];
    B = [453, 32, 134];
    C = bitxor(A, B)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics