Question: matlab Cell Arrays The cell array rowingDataSet, which is in the mat file rowingData, contains information on the 1996 Olympic Rowing team. The data includes


matlab
Cell Arrays The cell array rowingDataSet, which is in the mat file rowingData, contains information on the 1996 Olympic Rowing team. The data includes the names of 26 men participants, the event they rowed and their weights in lbs. Write a function to extract the third column into a numeric row array, calculate the mean weight, identify the number of the record that has a weight closest to the mean, and finally extract the name of the rower in the identified record number. For example: >>load rowingData % contains the cell array rowingDataSet >>[ meanweigth, closestRecord, nameInclosestRecord ] = ExtractRecord( rowingDataSet) meanweigth = 191.8462 closestRecord = nameInclosestRecord = 'Burden
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
