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
where the Height is in cm and the Mass in kg
Use ifelseif 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:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
