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)
Mostrar comentarios más antiguos
zachary stallings
el 30 de Mzo. de 2017
Respondida: Adam
el 30 de Mzo. de 2017
function bodyMassIndex= CalculateBMI(massKg,heightCm) heightCm=heightCm/100;
bodyMassIndex=massKg/(heightCm*heightCm);
end
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
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!