timetable — Create a timetable from row times and variables.
timetable groups same-height data variables with a datetime or duration row-time vector. Row times can be supplied directly or generated from SampleRate or TimeStep.
Syntax
TT = timetable()
TT = timetable(rowTimes, variables..., Name=Value...)Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
rowTimes or timing options | Any | No | — | Datetime/duration row times, SampleRate, TimeStep, or preallocation options. |
variables and Name,Value options | Any | Variadic | — | Same-height data variables plus VariableNames, Size, VariableTypes, and timing options. |
Returns
| Name | Type | Description |
|---|---|---|
TT | Any | Output timetable. |
How timetable works
- Variables must have the same number of rows as the row-time vector. Integer variables retain their native class and payload.
- Use
RowTimes,SampleRate, orTimeStepto choose one timing source.StartTimecan accompanySampleRateorTimeStep. - Preallocation accepts
Size,VariableTypes, and a timing source. Integer variable types allocate native integer columns directly. - Numeric row times and generated sequential row times without a timing source are available only in
runmatcompatibility mode. - Table indexing methods are shared with table objects.
Example
Create A Timetable
times = datetime(2026, 7, [1; 2]);
counts = uint64([10; 20]);
TT = timetable(times, counts, 'VariableNames', {'Count'})Expected output:
TT = timetable objectUsing timetable with coding agents
Open a RunMat example with live inputs, then ask the agent to explain how timetable changes the result.
Run a small timetable example, explain the result, then change one input and compare the output.
Related Table functions
array2table · array2timetable · categorical · cell2table · dictionary · groupsummary · head · height · iscategorical · isordinal · istable · istimetable · ordinal · pivot · rowfilter · struct2table · table · table2array · table2cell · table2struct · table2timetable · timerange · timetable2table · uitable · vartype · width
Open-source implementation
Unlike proprietary runtimes, every RunMat function is open-source. Read exactly how timetable is executed, line by line, in Rust.
- View the source for timetable in Rust on GitHub
- Learn how the RunMat runtime works
- Found a bug? Open an issue with a minimal reproduction.
About RunMat
RunMat is an open-source runtime that executes MATLAB-syntax code blazing on any GPU. It is licensed under the Apache 2.0 license.
- RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed. Simulations that took hours now take minutes.
- Start running code in seconds. RunMat runs in the browser, on the desktop, or from the CLI. No license server, no IT ticket.