%% Synchronize Timetables Using Live Editor Task
% This example shows how to use the Synchronize Timetables Live Editor task to synchronize data in input timetables.
% First, load two small timetables from the firstTT MAT-file. TT1 contains temperature measurements, and TT2 contains humidity measurements.

load firstTT

%
%
%
% Add the Synchronize Timetables task to your live script.
% To specify new row times that are the union of the row times from TT1 and TT2, use the Selection method menus.
% To adjust data by filling gaps in the output timetable variables, use the General rule menus. Select Missing as the fill value. The task fill gaps with the missing value that is appropriate for the data type of each timetable variable. For numeric variables, the missing value is NaN.
%
%
% You can fill gaps with interpolated values instead of NaNs. Specify linear interpolation as the general rule.
%
%
% Synchronize to a regular hourly time vector instead of the union of row times.
%
% Copyright 2019 The MathWorks, Inc.