In the newly created figure, click the Update Code button. The live script now contains
the code needed to reproduce the two subplots.
subplot(2,1,1,gca)
subplot(2,1,2)
Add a scatter plot that shows the diastolic blood pressure of patients that smoke versus
the diastolic blood pressure of patients that do not smoke. Run the code.
scatter(Age(Smoker==1),Diastolic(Smoker==1));
hold on
scatter(Age(Smoker==0),Diastolic(Smoker==0));
hold off
Add formatting:
Modify Figures in Live Scripts