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

T = table([10;20;30],[3.14;2.72;6.28]);

%
%% Return Data Using Variables Property

T = table([10 20 30]',[3.14 2.72 6.28]');
X = T.Variables

%
%% Access VariableNames Property

T = table([10;20],{'M';'F'});
T.Properties.VariableNames = {'Age','Gender'}

%
%% Display All Table Properties

T.Properties

%
% Copyright 2012 The MathWorks, Inc.