Question: Please solve using Matlab . To receive a thumbs up DO NOT USE ITERATIONS(loops) IN THE SOLUTION CODE!!!! Function Name: finalPredict Inputs: 1. (double) 5XN



Please solve using Matlab. To receive a thumbs up DO NOT USE ITERATIONS(loops) IN THE SOLUTION CODE!!!!
Function Name: finalPredict Inputs: 1. (double) 5XN table of each team's points 2. (char) 5x5 array of team captains' names 3. (char) 1x5 string with the captain of the team you support Outputs: 1. (char) A formatted string stating whether or not your team will make it to the finals Topics: (conditionals), (masking), (arrays) Background: It is a matter of pride. The friend you once watched fool around with a kickball back in grade school recess has now become a professional kickball player. All those years of hard work, training, intense practice, and emotional distress during recess have led to this moment. Whether it was stopping the bullies from stealing your lunch or from messing with you on the playground, your friend has always had your back. Since this is such a big moment, it's understandable that you're anxious about how your friend's team is doing. You turn to your other friend who has always had your back... MATLAB! Function Description: Write a function that determines whether or not your favorite kickball team has the chance to make it to the finals or not. Each row in the first input represents a team's scores. The sum of these scores is the total score of that team this season. Based on the third input, you must check a specific row to see if the corresponding team's total points are greater than 100. To determine the correct row, compare the 3rd input to the rows of the 2nd input. Whichever row in the 2nd input that contains the name of the captain you support is the row of interest. The 2nd input will contain a randomized list of the following team captains' names: 'Rohan', 'Shayz', 'PaulJ', 'ollie', and 'Divya'. The specific team captain you support (3rd input) will always be one of these 5 captains' names. The points table (1st input) has the team's scores along the corresponding rows. Output a different string depending on whether or not the team will make it to the finals. If the team has a total score less than 100, output: 'Better luck next year,
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
