timeseries2table
convert a timeseries into a table
Syntax
t = timeseries2table(ts)
Arguments
- ts
timeseries object
- t
table object
Description
timeseries2table converts a timeseries into a table. The row times (first column) of ts becomes the first variable of t.
Examples
t = timeseries2table(ts)
Time = datetime(2023, 6, 1:3)'; A = [1; 2; 3]; B = [10; 20; 30]; C = [-10;-20;-30]; ts = timeseries(Time,A,B,C, "VariableNames", ["Time", "A", "B", "C"]); T = timeseries2table(ts);
See also
- table — create a table from variables
- table2timeseries — convert a table into a timeseries
Report an issue | ||
<< timeseries | Timeseries/Table | varfun >> |