%% Union of Two Tables
% Define two tables with rows in common.

A = table([1:5]',['A';'B';'C';'D';'E'],logical([0;1;0;1;0]))

%

B = table([1:2:10]',['A';'C';'E';'G';'I'],logical(zeros(5,1)))

%
% Find the union of tables A and B.

C = union(A,B)

% Copyright 2012 The MathWorks, Inc.