%% Return Summary of Timetable as Structure
% Create a timetable.

Time = datetime({'2015-12-18 08:00:00';'2015-12-18 10:00:00';'2015-12-18 12:00:00'});
Temp = [37.3;39.1;42.3];
Pressure = [30.1;30.03;29.9];
TT = timetable(Time,Temp,Pressure)

%
% Return a summary of the timetable as a structure.

s = summary(TT)

%
% Display the summary of the row times. The TimeStep field shows that the time interval between consecutive row times is two hours. The NumMissing field shows there are no missing values (NaT) in the vector of row times.
%

s.Time

%
% Change the last row time so that the row times have different intervals between them.

TT.Time(3) = '2015-12-18 11:00:00';
TT

%
% Return a summary of the updated timetable. Since the time steps between row times are different, the TimeStep field has a NaN.

s = summary(TT);
s.Time

% Copyright 2012 The MathWorks, Inc.