%% Interpolate Data Values to Row Times
% Load two sample timetables that contain weather measurements. Synchronize their data to the union of the row times from the timetables.

load firstTT

%
% Display the timetables.

TT1
TT2

%
% Synchronize the timetables. To select the union of row times, specify 'union'. To resample TT1.Temp and TT2.Humidity using linear interpolation, specify 'linear'.

TT = synchronize(TT1,TT2,'union','linear')

% Copyright 2012 The MathWorks, Inc.