%% Symmetric Difference of Two Vectors
% Define two vectors with a value in common.

A = [5 1 3 3 3]; B = [4 1 2];

%
% Find the values of A and B that are not in their intersection.

C = setxor(A,B)

% Copyright 2012 The MathWorks, Inc.