# sets_xor

Version:

Returns the elements that are in one input or the other but not both.

## Syntax

c = sets_xor(a, b)
c = sets_xor(a, b, 'rows')
[c, d, e] = sets_xor(a, b)
[c, d, e] = sets_xor(a, b, 'rows')
Legacy name: setxor

## a

Vector or matrix.

## b

Vector or matrix.

## 'rows'

Specifies that c returns the rows that are in a or b but not both. You can specify this input when a and b are matrices with the same number of columns.

## c

Elements that are in a or b but not both. c is a vector or matrix.

## d

Indexes in a of the elements in c. d is a vector of integers.

## e

Indexes in b of the elements in c. e is a vector of integers.

A = [1, 2, 3, 4, 5, 6, 7, 8, 9];
B = [2, 3, 5, 7];
C = sets_xor(A, B)

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices