Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

asap please use Matlab A group of patients have had their height in centimeters recorded as follows: 159, 185, 170, 169, 163, 180, 177, 168

asapimage text in transcribedplease use Matlab

A group of patients have had their height in centimeters recorded as follows: 159, 185, 170, 169, 163, 180, 177, 168 and 175 cm. The same patients weight in kilograms are: 59, 88, 75, 77, 68, 90, 93, 76 and 70 kg. Write a script to perform the following tasks (100 points): 1. Store the height and weight in separate arrays (10 points) 2. Calculate the maximum height and maximum weight from the data (20 points) 3. Create a new array that converts the weight from kilograms to pounds (20 points) 4. Calculate the BMI (body mass index) of each patient. What is the max and min BMI? (you can use the formula and the steps to do so from Lab 1) (20 points) 5. Is the patient with the highest BMI also the same patient with the largest weight? (20 points) To do this (without any loops), use the following format of the in-built max function in MATLAB: [x,y] =max(a) Here, a is an array x is the maximum value in the array y is the location of the maximum value in the array 6. Comment your code appropriately for every task. Also include a title for your script, include your names and the date in your header comment for the code (10 points). Be careful about your units! Make sure that you list the sources that you use to obtain the formula for BMI

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

The Database Factory Active Database For Enterprise Computing

Authors: Schur, Stephen

1st Edition

0471558443, 9780471558446

More Books

Students also viewed these Databases questions

Question

Produce speeches and presentations

Answered: 1 week ago