Cody

Solution 888197

Submitted on 10 May 2016
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Fail
x = [1]; y_correct = [1,1,1]; assert(isequal(means(x),y_correct))

Error using means (line 2) Undefined function 'harmmean' for input arguments of type 'double'.

2   Fail
x = [1,4]; y_correct = [2.5,2,8/5]; assert(isequal(means(x),y_correct))

Error using means (line 2) Undefined function 'harmmean' for input arguments of type 'double'.

3   Fail
x = 1:10; y_correct = [5.5,nthroot(3628800,10),25200/7381]; assert(isequal(means(x),y_correct))

Error using means (line 2) Undefined function 'harmmean' for input arguments of type 'double'.

Suggested Problems

More from this Author9