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 visualizaciones (últimos 30 días)
function bodyMassIndex= CalculateBMI(massKg,heightCm) heightCm=heightCm/100;
bodyMassIndex=massKg/(heightCm*heightCm);
end

Respuesta aceptada

Adam
Adam el 30 de Mzo. de 2017
doc rdivide
doc times

Más respuestas (0)

Categorías

Más información sobre Time Series en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by