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

18 views (last 30 days)
function bodyMassIndex= CalculateBMI(massKg,heightCm) heightCm=heightCm/100;
bodyMassIndex=massKg/(heightCm*heightCm);
end

Accepted Answer

Adam
Adam on 30 Mar 2017
doc rdivide
doc times

More Answers (0)

Categories

Find more on Time Series in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!