Problem 1054. What's Your BMI?

Solution 1125797

Submitted on 18 Feb 2017 by Giorgos Papakonstantinou
  • Size: 11
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
h= 1; m= 1; y_correct = 703.06957964; assert(isequal(BMI(h,m),y_correct))

2   Pass
h= 70; m= 90; y_correct = 12.91352289134694; assert(isequal(BMI(h,m),y_correct))

Suggested Problems

More from this Author1

Community Treasure Hunt

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

Start Hunting!