Question: Solve using Matlab: Data Analysis Your task is to load the patients data and write a seript that does the following 1. Find the mean

Solve using Matlab:

Solve using Matlab: Data Analysis Your task is to load the patients

Data Analysis Your task is to load the patients data and write a seript that does the following 1. Find the mean and median ages of smokers and of non-smokers 2. Find how many people from the County General Hospital rate themselves to be in Excellent health 3. Make a scatterplot of weight vs. height, where the data for smokers and non-smokers are different colors. Include a legend saying which is which . Write the answers to the first two parts to a .txt file. 5. Save the scatterplot as a .pdf file. Tips: l notation and filtering are your friends. If for some reason you don't have patients on Matlab, the patients.mat file will be provided on the class site As always, make sure your code is commented well enough to be legible

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!