Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedUsing 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 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions