TT = timeseries2timetable(ts)
TT = timeseries2timetable(ts1, ..., tsN)
TT = timeseries2timetable(tsArray)
| Parameter | Description |
|---|---|
| ts | Time series data. |
| ts1, ..., tsN | Time series sharing the same time vector, TimeInfo Units and TimeInfo StartDate. |
| tsArray | Nonempty timeseries array, converted in column order. It must be the only input. |
| Parameter | Description |
|---|---|
| TT | Timetable object. |
timeseries2timetable converts a timeseries object to a timetable.
Relative numeric times are converted to duration row times. Absolute time metadata is converted to datetime row times.
Each time series becomes one variable, named after the Name property of the time series, or Data when it is empty. Duplicate names are made unique. To combine time series with different time vectors, convert each one separately and use synchronize.
ts = timeseries([1; 2; 3], [0; 1; 2], 'Name', 'speed');
TT = timeseries2timetable(ts)
| Version | Description |
|---|---|
| 2.0.0 | initial version |