%% Compare Time Ranges of Timetables
% Create two timetables with different time ranges. The timetables can also have different variables and different numbers of rows.

Intensity = [100;98.7;95.2;101.4;99.1];
TT1 = timetable(Intensity,'TimeStep',seconds(0.1))
Readings = [74;83;99];
TT2 = timetable(Readings,'TimeStep',seconds(0.5),'StartTime',seconds(0.25))

%
% Determine if the range of row times in TT1 overlaps the range of row times in TT2.

tf = overlapsrange(TT1,TT2)

% Copyright 2019 The MathWorks, Inc.