array2timetable
Convert array to timetable
Syntax
TT = array2timetable(X,'RowTimes',rowTimes)
TT = array2timetable(X,'RowTimes',rowTimes,'VariableNames',{varName1,...,varNameN})
Description
convertsTT
= array2timetable(X
,'RowTimes',rowTimes)X
androwTimes
to a timetable.X
is anM
-by-N
array androwTimes
is anM
-by-1
vector of datetime or duration values. Each column ofX
becomes a variable ofTT
. The time values inrowTimes
label the rows of the timetable.TT
is anM
-by-N
timetable.
For more information on creating and using timetables, seeTimetables.
Examples
Input Arguments
Output Arguments
See Also
Introduced in R2016b
Was this topic helpful?