Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using MATLAB Hamework 5-Arrays Hamework 5 Arrays Function Name: goLong Notes: Round the throw distance to 2 decimal places There will only be oneon the
Using MATLAB
Hamework 5-Arrays Hamework 5 Arrays Function Name: goLong Notes: Round the throw distance to 2 decimal places There will only be oneon the row closest to the top (ie. there will never be more than one ending location). 1. (char) An NxM array representing the field before the pass . The background will always be spaces '' Outputs: 1. (char) An NxM array representing the field after the pass Hints: 2. (double) The distance the pass traveled in yards The find) and sum() functions will be useful. Remember the distance formula? 3. (doubie) The distarice the receiver ran in yards Background: With Atlanta getting in the Super Bowl spirt, you decide to volunteer for the Georgia Tech footbal team to help them with some advanced analytics. With the team dropping the triple option, the coaches want your help looking at some passing plays Function Description: You wil be given a character array that represents the field before the play is run. The character Q will represent the quarterback, the character "' will represent the wide receiver and the characters will be the the path the wide receiver follows. Given this diagram, you will need to 1. Figure out how far the recaiver runs. Eachrepresents 1 yard. 2 Update the dagram to show what it will look like once the play has been run with the wide receiver at the end of their route. The end af the wide recevers route will always be the character closest to the top of the array 3. Determine how far the ball travels in the air, from the quarterbackQ) to the wide receiver ('). Each index counts as one yard. The bal travels straight from the quarterback to the receiver, not necessarily along the rows and columns. Example: play ' >[finalPlay, throwDist, runDist]goLong(play) inalPlay ' throwDist 4.47 runDist 7Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started