Cody

Solution 1757393

Submitted on 22 Mar 2019 by Zain Faruqi
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 = [1 2 3]; y_correct = [1.5 2.5]; assert(isequal(two_mean(x),y_correct))

sum = 3 sum = 5

2   Pass
x = [10 0 0 0 100]; y_correct = [5 0 0 50]; assert(isequal(two_mean(x),y_correct))

sum = 10 sum = 0 sum = 0 sum = 100

3   Pass
x = [1 2 4]; y_correct = [1.5 3]; assert(isequal(two_mean(x),y_correct))

sum = 3 sum = 6

More from this Author23