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

MATLAB Cell Arrays The cell array rowingDataSet, which is in the mat

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, name!nClosestRecord ] ExtractRecord(rowingDataSet) me ankleigth = 191.8462 closestRecord- 4 nameInclosestRecord Burden Your Function Save C Reset MATLAB Documentation 1 function [ meanweigth, closestRecord, namelnclosestRecord ] = ExtractRecord( cel!Array) % Your code goes here 4 5 end Code to call your function C Reset load rowingData % contains the cell array rowingDataSet 2 meaneigth, closestRecord, nameInclosestRecord - ExtractRecord(rowingDataset)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!