Prathamesh - MATLAB Cody - MATLAB Central

Prathamesh

29887
Rank
2
Badges
149
Score
1 – 20 of 20

Prathamesh submitted a Comment to Problem 44945. Calculate BMI

function bmi = bmi_calculator(hw) % Convert the height values from inches to meters h=reshape(hw(:,1),1,[]); h=0.0254*h; % Convert the weight values from lbs to kilograms w=reshape(hw(:,2),1,[]); w=(1/2.2)*w; % Calculate the bmi for height and weight combination and return the output variable 'bmi' bmi=w./(h.^2); end what is wrong with this, please help. It runs fine on RUN button but does not pass the test

on 27 Mar 2024

Prathamesh received Commenter badge for Problem 44934. Plot Damped Sinusoid

on 27 Mar 2024

Prathamesh received Solver badge for Solution 11816577

on 8 Aug 2023

1 – 20 of 20
Go to top of page