www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SymmetricDifferenceofTwoVectorsExample.m

    %% 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)