Question: This is matlab problem please read it carefully. Name: GTID (903Xxxxxx, ete.): e following function and answers the questions that follow Problem 6. Trace th

 This is matlab problem please read it carefully. Name: GTID (903Xxxxxx,

This is matlab problem please read it carefully.

Name: GTID (903Xxxxxx, ete.): e following function and answers the questions that follow Problem 6. Trace th function takes in a structure array of runner data as the first input and the name of a race as the second inpat n bestRunner racingMen Irunners, racel 1 Eunctio 3editcaserace 'A 6 tines-runners(:. (ace 8 name Irunnera(ind), Name ind max (times) 9 country= runners(ind).country show runnerslind) Shoe 11 brand]strtok ishow 12 13 bestRunnerstructl'Nano', nane, 'Shoe, band t2:end) Country,country) 1:length (runners) runners.Nunber1 i 15 for 17 end 18 end The 1xN structure array racers is defined in your workspace Fieldname runner8 (2 Sprint Shoe 20 AirJordan Nike ' Yeezy Rdida NMD Rdidas thug Rick Norani 'China The following is then run in the command window: > race 100 Spring out racingNen racers, raca) What value is stored in out after the function is run? Draw the structure using the table given. You might not noed all the spaces. Hint: out will be a 1x1 struct. (6 points) Fieldnames a. Values GTID (903xxxxxx, etc.) b. You decide to remove the feld shoe from runners after line 2. Select the one choice that accomplishes this. 3 points) O runners . She 1); O runners rmfield inovies, Shoeli O rmfield(runners, Shoe) unners unneEs Isrcmp (runners,'Shoe'l Line 8 is changed to be c. nane zunners Name Does this change the value of name? Explain your answer in one sentence. (4 points) You realize runners is missing data about several runners. A second 1xM s with the same fieldnames is stored in more Rinne s in your workspace. How can you add this new structure array to the original one? Select all that apply. (4 points) O runner [runners noreRunnersi O runnersIrunners moreRunnesh O runners Izunnars moreRunners d. structure array O runners lend+l:end+length (noreunnrs noreRunnera Which of the following will perform the same task as the for loop in lines 15 through 177 Select all that apply. (5 points) e. O O ? runners . Number= 1:length runners); setfield(runners, 'Nunber", 1:lengt runnersMunber" (1:1ength runner?) None of the above runner s)

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!