%% Inner-Join Operation of Timetables
% Create two timetables, Tleft and Tright. They have some row times in common, but each also includes row times that are not in the other timetable.

Tleft = timetable(seconds([1;2;4;6]),[1 2 3 11]')

%

Tright = timetable(seconds([2;4;6;7]),[4 5 6 7]')

%
% Combine Tleft and Tright with an inner join. T matches up the rows with common row times. T does not contain any other rows from either timetable.

T = innerjoin(Tleft,Tright)

% Copyright 2012 The MathWorks, Inc.