BMI calculator Define a function CalculateBMI with inputs massKg and heightCm. The function returns bodyMassIndex. The function should be able to calculate the BMI of a single individual, or a group of inviduals provided as a row. need help w/ group

function bodyMassIndex= CalculateBMI(massKg,heightCm) heightCm=heightCm/100;
bodyMassIndex=massKg/(heightCm*heightCm);
end

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 30 Mar 2017

Answered:

on 30 Mar 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!