%% Basic Timetable Properties
% This example is intended to provide exampleobjects to embed on the timetable reference page. Do not embed the entire example.
%% Create Small Timetable

Time = seconds([5;10;15]);
TT = timetable(Time,[10;20;30],[3.14;2.72;6.28]);

%
%% Return Data Using Variables Property

Time = seconds([0.005 0.006 0.007]');
TT = timetable(Time,[10 20 30]',[3.14 2.72 6.28]');
X = TT.Variables

%
%% Access VariableNames Property

Time = seconds([5;10]);
TT = timetable(Time,[10;20],{'M';'F'});
TT.Properties.VariableNames = {'Age','Gender'}

%
%% Display All Timetable Properties

TT.Properties

%
% Copyright 2012 The MathWorks, Inc.