setxor
C = setxor (A, B) C = setxor (A, B, "rows") C = setxor (A, B, "sorted" | "stable" | "legacy") [C, ia, ib] = setxor (...) Distinct elements that occur in exactly one of A and B. Options are matched case-insensitively and may be combined, except that "sorted", "stable" and "legacy" are mutually exclusive. The index outputs are column vectors; "ia" refers to A and "ib" to B.