array2timetable
Convert homogeneous array to timetable.
📝Syntax
TT = array2timetable(A, 'RowTimes', rowTimes)
📥Input Arguments
Parameter Description
A Input array.
rowTimes datetime or duration vector.
📤Output Arguments
Parameter Description
TT Timetable object.
📄Description

array2timetable converts the columns of A to variables in a timetable.

Use 'VariableNames' to provide variable names for the output timetable.

💡Examples
t = datetime(2024, 1, 1) + days(0:2)';
A = [1 10; 2 20; 3 30];
TT = array2timetable(A, 'RowTimes', t)
🔗See Also
array2tabletimetable
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub