Question: The data for the question is from SOCR Data MLB HeightsWeights (if you search on google you will find it) Write a Matlab program that

Write a Matlab program that reads the height and weight data. Note that this is a text file that has one row with header information. You can use the command "readtable" to read in the data and organize the data as a Matlab table. Write a function that calculates the Body-Mass index (BMI) for each player. This is calculated as follows: BMI = 703 (weight/(height x height )) (This assumes that weights is given in pounds and height in inches, which is the case in the data provided) Calculate the BMI for each player in the data set. What is the name of the player with the highest BMI? Sean Henn C.C. Sabathia Jon Rauch Prince Fielder Scott Schoeneweis The third column in the data set refers to the position of the player. Which position is associated with the highest mean weight? Note: there are lots of ways to compute the answer. One way is to use the function "groupsummary". Another way to do this is through the function "unique". The third output of the unique function can be used to create a numeric index for cell arrays of strings. Catcher Designated_Hitter First_Baseman Outfielder Relief_Pitcher Second_Baseman Shortstop Starting Pitcher Third_Baseman SOCR Data MLB HeightsWeights Contents [hide] 1 SOCR Data - 1035 Records of Heights (in) and Weights (lbs) of Major League Baseball Players 1.1 Summary 1.2 Data Table 2 See also 3 References SOCR Data - 1035 Records of Heights (in) and Weights (lbs) of Major League Baseball Pla Summary Human Height and weight of are mostly hereditable, but lifestyles (e.g., regular strenuous physical exercise), diet, health and enviro individual's physical characteristics. The dataset below contains 1035 records of heights and weights for some current and recent Maj were obtained from different resources (e.g. IBM Many Eyes and the references below). See also the 25,000 records of adolescent The data includes the following variables: Name: MLBL Player Name - Team: The Baseball team the player was a member of at the time the data was acquired - Position: Player field position Height(inches): Player height in inches Weight(pounds): Player weight in pounds Age: Player age at time of record Data Table Height(inches) Weig 74 74 72 72 Name Team Position Adam_Donachie BAL Catcher Paul_Bako BAL Catcher Ramon_Hernandez BAL Catcher Kevin_Millar BAL First_Baseman Chris_Gomez BAL First_Baseman Brian_Roberts BAL Second Baseman Miguel Tejada Shortstop in_Mora BAL Third_Baseman Aubrey_Huff BAL Third_Baseman 73 69 BAL 69 71 76 DAR tar +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
