%% Intersection of Two Vectors
% Create two vectors that have some values in common.

A = [7 1 7 7 4]; 
B = [7 0 4 4 0];

%
% Find the values common to both A and B.

C = intersect(A,B)

% Copyright 2012 The MathWorks, Inc.