Question: This must be done as function in MATLAB Function Description: You have been given the (x, y) coordinates of the two players on the football
This must be done as function in MATLAB

Function Description: You have been given the (x, y) coordinates of the two players on the football field, represented by a vector, where each coordinate is listed in the order [x1, y1, x2, y2]. Use your newly acquired MATLAB skillz to concisely state the distance between the two players as a string! Your output string should be in the following format: ( ) is units from ( ). In case you forgot, the Euclidean distance formula between two points is: d = Squareroot (x_1 - x_2)^2 + (y_1 - y_2)^2 Example: [out] = goLong ([7 8 6 5]) out = (7.00, 8.00) is 3.16 units from (6.00, 5.00)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
