Question: This is a matlab question please include code and answers. thank you We already have a function file to compute body mass index (BMI). Now

This is a matlab question please include code and answers. thank you

We already have a function file to compute body mass index (BMI). Now write a .m function file that takes height, weight, gender (0 for female, 1 for male), and age and outputs the body fat percentage (BFP) (another silly metric). BFP = 1.2BMI + 0.23(age) 10.8(gender) 5.4 Write your function so that it calls the BMI function you wrote earlier.

Code for BMI function

function b=BMI_Index(weight, height)

w=weight

h=height

H=w/h^2

b=703*H

(a) Abraham Lincoln was a 64, 180 lb, 52 year-old president. What was his BFP?

(b) NFL MVP Peyton Manning was a 65, 230 lb, 40 year-old man when he won the Superbowl. What was his BFP?

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!