setdiff
(Not Recommended) Set difference 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
C = setdiff(A,B,vars)A but not
          B, considering only the variables specified in 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. If there are multiple observations in A that
        correspond to an observation in C, those values are taken from the
        first occurrence.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2012b