MATLAB: Extract start and end of a timerange

MATLABtimerangetimerange concatenationtimetable subscript

Working with timerange objects is great! One can keep a table in one piece and operate on subscripts of that table with a set of timeranges.
However … part of that workflow is to glue two adjacent timeranges together, which means extracting the start/end datetimes of a timerange, or implementing operations such as:
TR_AB = timerange(TR_A, TR_B); // which would take start of A, end of B and generate the AB timerange.
How can one achieve this?
Thanks

Best Answer

Andrei, you can't currently do that. You'd have to keep around the original endpoint values and create a new timerange.
Related Question