Question: solve it as a matlab code pls The Height Mass Index ( HMI ) of a person on average can be calculated by the following

solve it as a matlab code pls
The Height Mass Index (HMI) of a person on average can be calculated by the following formula:
HMI=( Mass )/(( Height )^(2))
where the Height is in cm , and the Mass in kg .
Use if-elseif structure to write a MATLAB program to prompt the user to input the Height and Mass and
call an internal function named HMIndex that takes the two inputs: Height and Mass and then computes
HMI and returns two outputs: HMI and Investigation based on diet warning Investigation as shown in the
following table:
solve it as a matlab code pls The Height Mass

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 Programming Questions!