%% New Name for Merged Variable
% Create a table using arrays of data from the patients.mat file. Display the first three rows of the table.

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

%
% Merge the variables Systolic and Diastolic into one variable with two columns. Name it BloodPressure.

T2 = mergevars(T1,{'Systolic','Diastolic'},'NewVariableName','BloodPressure');
head(T2,3)

% Copyright 2012 The MathWorks, Inc.