MATLAB: 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/ grou

function bmi calculate

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

Best Answer

doc rdivide
doc times