%% Add Variables
% Create a table. Then add variables from the workspace to the table.
% Load arrays from the patients.mat file. Create a table that contains the names, ages, heights, and weights of patients. Then display the first three rows.

load patients
T1 = table(LastName,Age,Height,Weight);
head(T1,3)

%
% Add the workspace variables, Gender and Smoker, to the table.

T2 = addvars(T1,Gender,Smoker);
head(T2,3)

% Copyright 2012 The MathWorks, Inc.