Cody

Solution 1692458

Submitted on 14 Dec 2018 by HH
  • Size: 9
  • This is the leading solution.
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 4 5]; y = [6 7 8 9 10]; out_mean = [3.5000 4.5000 5.5000 6.5000 7.5000]; assert(isequal(your_fcn_name(x,y),out_mean))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
x = [1 1 2 3 5 8 13 21]; y = ones(1,8); out_mean = [1 1 1.5 2 3 4.5 7 11]; assert(isequal(your_fcn_name(x,y),out_mean))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]

3   Pass
x = ones(1,100); y = 7*ones(1,100); out_mean = 4*ones(1,100); assert(isequal(your_fcn_name(x,y),out_mean))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)]

4   Pass
x = [5 3 8 1 6 7 9 4 2]; y = [3 7 5 6 1 2 9 8 4]; out_mean = [4 5 6.5 3.5 3.5 4.5 9 6 3]; assert(isequal(your_fcn_name(x,y),out_mean))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)]

5   Pass
x = 5:-1:1; y = 1:5; out_mean = 3*ones(1,5); assert(isequal(your_fcn_name(x,y),out_mean))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)]

6   Pass
x = 42; y = -42; out_mean = 0; assert(isequal(your_fcn_name(x,y),out_mean))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In your_fcn_name (line 2) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)]

Suggested Problems

More from this Author18