www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SymmetricDifferenceofVectorsofDifferentClassesandShapesExample.m
%% Symmetric Difference of Vectors of Different Classes and Shapes %% % Create a column vector character array. A = ['A';'B';'C'], class(A) %% % Create a row vector containing elements of numeric type |double|. B = [66 67 68], class(B) %% % Find the symmetric difference of |A| and |B|. C = setxor(A,B) %% % The result is a column vector character array. class(C)