MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Add blood pressure readings for the patients from the workspace variables Systolic and
Diastolic. Each row contains Systolic, Diastolic, and BMI values for the same
patient.


T.Systolic = Systolic;
T.Diastolic = Diastolic;


Create a histogram to show whether there is a relationship between high values of
Diastolic and BMI.


tf = (T.BMI <= 25);
h1 = histogram(T.Diastolic(tf),'BinMethod','integers');
hold on
tf = (T.BMI > 25);


Create and Work with Tables
Free download pdf