Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

qustion 3 and 4 please explaine why A group of patients have had their height in centimeters recorded as follows: 159, 185, 170, 169, 163,

image text in transcribed qustion 3 and 4 please explaine why
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? (BMI - m/h? where m= mass in kg, h-height in meters) (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

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions