TT = array2timetable(A, 'RowTimes', rowTimes)
| Parameter | Description |
|---|---|
| A | Input array. |
| rowTimes | datetime or duration vector. |
| Parameter | Description |
|---|---|
| TT | Timetable object. |
array2timetable converts the columns of A to variables in a timetable.
Use 'VariableNames' to provide variable names for the output timetable.
t = datetime(2024, 1, 1) + days(0:2)';
A = [1 10; 2 20; 3 30];
TT = array2timetable(A, 'RowTimes', t)
| Version | Description |
|---|---|
| 2.0.0 | initial version |