Question: using the program Matlab Body Mass Index (BMI) is a calculation using a person's height and weight. The formula is given by BMI = weight(kg)
Body Mass Index (BMI) is a calculation using a person's height and weight. The formula is given by BMI = weight(kg) height?(m) Write a function, with the following signature that will compute and return a person's BMI classification. function BMI_class = computeBMI (weight Inputs: weight: Weight of person (kg) height: Height of person (m) Output: BMI_class 1 if a person underweight, for BMI less than 18.5 2 if a person is in the healthy weight range, for BMI between 18.5 (inclusive) to 24.9 (inclusive) 3 if a person is overweight, for BMI above 24.9 (not inclusive) to 29.9 (inclusive) 4 if a person is obese, for BMI above 29.9 (no inclusive)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
