# setxor

(Not Recommended) Set exclusive or for dataset array observations

**The dataset data type is not recommended. To work with heterogeneous data,
use the MATLAB ^{®}
table data type instead. See MATLAB
table documentation for more information.**

## Description

returns the set of observations that are not in the intersection of the two arrays,
considering only the variables specified in `C`

= setxor(`A,B`

,`vars`

)`vars`

, with repetitions
removed. The observations in the dataset array `C`

are sorted by these
variables. The values for variables not specified in `vars`

for each
observation in `C`

are taken from the corresponding observation in
`A`

or `B`

. If there are multiple observations in
`A`

or `B`

that correspond to an observation in
`C`

, those values are taken from the first occurrence.

## Input Arguments

## Output Arguments

## Version History

**Introduced in R2012b**