Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 213390

Submitted on 6 Mar 2013 by Ben Petschel

Correct

17Size
Leading solution size is 12.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%Hint
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))