Retime Timetable
Resample or aggregate timetable data in the Live Editor
Description
The Retime Timetable task lets you interactively change the row times of a timetable and then resample or aggregate the data in its variables. 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 monthly data).
Remove rows that have duplicate row times.
Make an irregular timetable into 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
Retime Timetable generates code that uses the retime function.
Open the Task
To add the Retime Timetable task to a live script in the MATLAB Editor:
On the Live Editor tab, select Task > Retime Timetable.
In a code block in the script, type a relevant keyword, such as
retime,timetable,upsample, ordownsample. Select Retime Timetable from the suggested command completions. For some keywords, the task automatically updates one or more corresponding parameters.


