Navigation

Operators and Keywords

Function List:

C++ API

: c = setxor (a, b)
: c = setxor (a, b, "rows")
: [c, ia, ib] = setxor (…)

Return the unique elements exclusive to sets a or b sorted in ascending order.

If a and b are both row vectors then return a row vector; Otherwise, return a column vector. The inputs may also be cell arrays of strings.

If the optional input "rows" is given then return the rows exclusive to sets a and b. The inputs must be 2-D matrices to use this option.

If requested, return index vectors ia and ib such that a(ia) and b(ib) are disjoint sets whose union is c.

See also: unique, union, intersect, setdiff, ismember.

Package: octave