Question: matlab 1 a Create a structure array cated pitchers using the table below using direct teld notation ex, structure feid : ander the struct tu
1 a Create a structure array cated pitchers using the table below using direct teld notation ex, structure feid : ander the struct tu ction. The holds are the tolo Remember that to pass the tests the variable and field names must match EXACTLY, including capitalization Name: Harang"(2002 2003 2004] (3.54, 4.67,2.1 278, 192, 56 ng: Name, rear, ERA, and P Year: ERA IP: "Coffey"(2002.2003.2004] 19.78, 12.1, 7.8 [145, 267, 228 [133, 184, 237 21, 280, 275 Valentine" [2002.2003 2004 14.56, 1.18, 8.21 Claussen 2002,2003 2004 9.21, 7.38, 1.76 b. Make a COPY of pitchers called pitchers with_ER Add the field "ER to each structure in the array, and assign a value to each using ER ERA P Remember that you must access the values of ERA and IP from the previously created structure, for example: pitchers with ER (1).ER-pitchers_with ER(1).ERA.*pitchers with ER1)IP/9 Your Script 1 pitchers = [] C Reset MATLAB Documentation 2 pitchers_with ER pitchers; use a for loop to add the ER field to each element of the struct array, one at a tine 1 a Create a structure array cated pitchers using the table below using direct teld notation ex, structure feid : ander the struct tu ction. The holds are the tolo Remember that to pass the tests the variable and field names must match EXACTLY, including capitalization Name: Harang"(2002 2003 2004] (3.54, 4.67,2.1 278, 192, 56 ng: Name, rear, ERA, and P Year: ERA IP: "Coffey"(2002.2003.2004] 19.78, 12.1, 7.8 [145, 267, 228 [133, 184, 237 21, 280, 275 Valentine" [2002.2003 2004 14.56, 1.18, 8.21 Claussen 2002,2003 2004 9.21, 7.38, 1.76 b. Make a COPY of pitchers called pitchers with_ER Add the field "ER to each structure in the array, and assign a value to each using ER ERA P Remember that you must access the values of ERA and IP from the previously created structure, for example: pitchers with ER (1).ER-pitchers_with ER(1).ERA.*pitchers with ER1)IP/9 Your Script 1 pitchers = [] C Reset MATLAB Documentation 2 pitchers_with ER pitchers; use a for loop to add the ER field to each element of the struct array, one at a tine
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
