Synchronize Timetables
Retime and combine timetables to new time vector in the Live Editor
Description
The Synchronize Timetables task lets you interactively collect variables from all input timetables, synchronize them to a common time vector, and return the result as a single timetable. The effect is similar to a horizontal concatenation, though the input timetables can have different row times. The task also automatically generates MATLAB® code for your live script.
Using this task, you can:
Interpolate data values at new row times.
Aggregate data into time bins (for example, to create a timetable containing quarterly means from timetables containing monthly data).
Remove rows that have duplicate row times.
Make the output a regular one by specifying a uniform time step or sample rate.
For more information on Live Editor tasks, see Add Interactive Tasks to a Live Script.
Related Functions
Synchronize Timetables generates code that uses the
synchronize function.
Open the Task
To add the Synchronize Timetables task to a live script in the MATLAB Editor:
On the Live Editor tab, select Task > Synchronize Timetables.
In a code block in the script, type a relevant keyword, such as
synchronize,timetable,upsample, ordownsample. Select Synchronize Timetables from the suggested command completions. For some keywords, the task automatically updates one or more corresponding parameters.



