Cody

Problem 3017. Baseball Pitch Question

Solution 2160038

Submitted on 14 Mar 2020 by Asif Newaz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = [100 98 95 103 84 98 87 105 95 98]; y_correct = 96.3; assert(isequal(average_pitch(x),y_correct))

2   Pass
x = [100 90 95 90 92 90 94 100]; y_correct = 93.875; assert(isequal(average_pitch(x),y_correct))