%% Merge Timetables
% Create two timetables that have the same row times but different variables.

Traffic = [0.8 0.9 0.1 0.7 0.9]';
Noise = [0 1 1.5 2 2.3]';
Tleft = timetable(hours(1:5)',Traffic,Noise)

%

Distance = [0.88 0.86 0.91 0.9 0.86]';
Tright = timetable(hours(1:5)',Distance)

%
% Merge the timetables. join uses the row times as the key variables.

T = join(Tleft,Tright)

% Copyright 2012 The MathWorks, Inc.