array2timetable
datatypes: tt = array2timetable (A, 'RowTimes', rowTimes)
datatypes: tt = array2timetable (A, 'TimeStep', dt)
datatypes: tt = array2timetable (A, 'SampleRate', fs)
datatypes: tt = array2timetable (…, Name, Value)
Convert an array to a timetable.
tt = array2timetable (A, converts the 2-D array A to a timetable, each
column becoming a variable and rowTimes labelling the rows. The row
times must be given, by one of 'RowTimes',
rowTimes)'RowTimes', 'TimeStep' or
'SampleRate', since a timetable cannot be built without them.
Variable names are taken from the name of A with the column number
appended, so an array named data gives 'data1',
'data2' and so on; an unnamed array gives 'Var1' onwards.
The following Name-Value pairs are also accepted.
| Name | Value |
|---|---|
'VariableNames' | A cell array of character vectors or a string array defining the variable names, one per column of A. |
'DimensionNames' | A two-element cell array of character
vectors or string array naming the rows and the variables. By default the
rows are named 'Time'. |
'StartTime' | The time of the first row, for the
'TimeStep' and 'SampleRate' forms. |
Source Code: array2timetable
See also: table.table2timetable, timetable.timetable2table, timetable, array2table
Source Code: array2timetable