FUNCTION REFERENCE

timetable

Table whose rows have datetime or duration timestamps.

Table whose rows have datetime or duration timestamps.

Syntax

TT = timetable(rowTimes,v1,v2,...)

Syntax

TT = timetable(v1,...,'RowTimes',t)

Syntax

TT = timetable(v1,...,'SampleRate',fs,'StartTime',start)

Syntax

TT = timetable(v1,...,'TimeStep',dt)

RowTimes is a datetime or duration vector with one value per row, stored as a column. VariableNames and DimensionNames set the column and dimension names. Defaults are Time and Variables. TT.Time and TT.Properties.RowTimes expose the timestamps. Variables, row selection, size, height, width and display use ordinary table behavior.

Example

t = seconds([0;1;2]); x = [4;5;6]; TT = timetable(t,x); TT(1:2,:)

Differences from MATLAB: Calendar TimeStep requires an explicit datetime StartTime. Only datetime/duration row times are supported; timerange, preallocation, numeric row times, per-variable continuity and timetable persistence are not implemented.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.