Question: does anyone know how to do the matlab coding of thus question? Two basketball teams are trying to draft players. They would cach like to

does anyone know how to do the matlab coding of thus question?
does anyone know how to do the matlab coding of thus question?

Two basketball teams are trying to draft players. They would cach like to add 10 new players to round out their teams. You are going to simulate the draft for the two teams, Each of the 20 available players has a random free-throw percentage between 50% and 90% (let's use uniformly distributed INTEGERS from 50-90), and a random average number of tumovers per game between 0 and 8 (uniformly distributed INTEGERS), and can be identified by a jersey number which ranges from 1 to 20. Create a 3 by 20 matrix that contains all of the relevant information for the twenty players with the jersey numbers (first row), free throw percentages (second row), and average number of turnovers per game (third row). Team A likes to pick players with the highest free-throw percentage, while Team B prefers players with a low average number of tumovers. Thus, when choosing teams, Team A will choose whichever player is available with the highest free-throw percentage, while Team B will choose whichever player is available with the lowest turnover rate. To be fair, the teams must alternate choosing players. Also remember that no one player can be placed on both teams each player must be assigned to one and only one team! Simulate the draft using a loop, with alternating picks. To start off the draft, perform a coin toss: heads - Team A starts; tails - team B starts. Create 3 by 10 matrices that display the players chosen and corresponding stats for Team A and Team B. The matrix for each team should include the jersey number (first row), free-throw percentage (second row), and average number of turnovers (third row) for each of the players selected. Once you are done with picking the teams, print the matrices for cach team to the command window. Also, calculate the average free-throw percentage and the average turnover rate for each team, and print these four values to the comund window with informative text

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!