I have two date intervals: from
25-July-2017 from 9:00 AM to 25-July-2017 12:30 PM and from 26-July-2017 from 9:00 AM to 26-July-2017 12:30 PM.
I am not able to remove the duration in between (from 12:30 PM to the next day 9:00 AM).
A = readtable('Time and Sale_7_25_2017.xlsx');B = readtable('Time and Sale_7_26_2017.xlsx');A.Date = datetime(A.Date,'ConvertFrom','excel');B.Date = datetime(B.Date,'ConvertFrom','excel');figure(1)plot(A.Date, A.Price,B.Date, B.Price, '-r', 'linewidth', 2);datetick('x', 'dd-mmm HH:MM:SS','keeplimits','keepticks')xlabel('Period')ylabel('Price')grid ongrid minor;
Best Answer