Question: In MATLAB please Problem 2. Function Name: hwl 2 Inputs: (double, 1x K) times - log for how long each runner ran for. (double, 1x
In MATLAB please
Problem 2. Function Name: hwl 2 Inputs: (double, 1x K) times - log for how long each runner ran for. (double, 1x K) speeds - log for how fast on average each runner ran. (double, 1x K) startDists - log for the starting point for each runner. Outputs: (double, 1x K) endDists - log for the end points of the runners after they ran. Function Description: You are in charge of keeping track of a list of marathon runners. Each runner starts at some starting point and runs for some speed for a certain time. You should output what the end point is for the run for each runner. All the vari- ables are 1xN, where N is the number of runners. Your output should also be 1xN. Also make sure to round each value that you get to the nearest decimal point. Examples: hwl_2([1], [1], [0]) should output [1] hwl 2([1, 2, 3), (1, 2, 1), (3, 2, 1.12]) should output [4, 6, 4.1] Tests Understanding Of: vector operations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
