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

% Copyright 2012 The MathWorks, Inc.