www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ConvertArrayToTimetableExample.m
%% Convert Array to Timetable % Convert an array to a timetable. Add a vector of durations as the row % times. X = rand(5,3); Time = [seconds(1):seconds(1):seconds(5)]; TT = array2timetable(X,'RowTimes',Time) %% % Return the size of the timetable. |TT| contains five rows and three % variables. The set of row times is a table property. The row times are not % contained in a table variable. size(TT)