Convert table to timetable
converts
the table TT = table2timetable(T)T to a timetable. The first datetime
or duration variable in T becomes the vector of
row times of TT. The remaining variables of T become
the variables of TT.
If T is an M-by-N table
without row names, then TT is an M-by-(N-1) timetable.
If T is an M-by-N table
with row names, then table2timetable assigns the
row names of T to a variable of TT.
As a result, TT is an M-by-N timetable.
For more information on creating and using timetables, see Timetables.
To create a timetable from data in a text or spreadsheet file,
first use the readtable function
to read the data to a table. Then convert the table to a timetable
with table2timetable.
converts TT = table2timetable(T,'RowTimes',timeVarName)T to
a timetable. timeVarName is the name of a variable
in T that contains datetime or duration values,
and that table2timetable assigns as the vector
of row times of TT. timeVarName can
be the name of any variable in T that contains
datetime or duration values.
array2timetable | isvarname | summary | timetable | Timetable
Properties | uitable