www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ConvertTimetableToTableExample.m
%% Convert Timetable to Table % Create a timetable and convert it to a table. Time = datetime({'2015-12-18';'2015-12-19';'2015-12-20'}); Temp = [37.3;39.1;42.3]; Pressure = [29.4;29.6;30.0]; Precip = [0.1;0.9;0.0]; TT = timetable(Time,Temp,Pressure,Precip); T = timetable2table(TT) %% % Display the sizes of |T| and |TT|. |T| has one more variable than |TT| % because |timetable2table| converts the row times of |TT| to a variable of % |T|. whos T TT