Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The patients.mat file is located under Lecture 6 Patient Data For HW6 using this URL https://math.berkeley.edu/~ehallman/98-fa18/code/index.html Data Analysis Your task is to load the patients

image text in transcribed

The patients.mat file is located under Lecture 6 "Patient Data For HW6" using this URL "https://math.berkeley.edu/~ehallman/98-fa18/code/index.html"

Data Analysis Your task is to load the patients data and write a script 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. 4. Write the answers to the first two parts to a txt file. 5. Save the scatterplot as a .pdf file. Tips . Vectorized notation and filtering are your friends. Pp ordod on te olaos on Matlab, the patiil te 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

Choose an appropriate organizational pattern for your speech

Answered: 1 week ago

Question

Writing a Strong Conclusion

Answered: 1 week ago