www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/UnionofTwoVectorsExample.m
%% Union of Two Vectors %% % Define two vectors with a value in common. A = [5 7 1]; B = [3 1 1]; %% % Find the union of vectors |A| and |B|. C = union(A,B)