MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Values:

Min 111
Median 142.5
Max 202

Smoker: 100x1 logical

Values:

True 34
False 66

BloodPressure: 100x2 double

Properties:
Description: Systolic/Diastolic
Values:
BloodPressure_1 BloodPressure_2
_______________ _______________

Min 109 68
Median 122 81.5
Max 138 99

The BloodPressure variable has a description and the Age, Height, Weight, and
BloodPressure variables have units.

Change a Variable Name

Change the variable name for the first variable from Gender to Sex.

T.Properties.VariableNames{'Gender'} = 'Sex';

Display the first five rows of the table, T.

T(1:5,:)

ans=5×6 table
Sex Age Height Weight Smoker BloodPressure
________ ___ ______ ______ ______ _____________

'Male' 38 71 176 true 124 93
'Male' 43 69 163 false 109 77
'Female' 38 64 131 false 125 83

9 Tables

Free download pdf