Cody

Solution 1416702

Submitted on 15 Jan 2018 by Erik Luiten
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
data=[... 1 3 6 7 9 3 5 6 9 1]; output_correct =[... 1 3 6 7 9 3 5 6 9 1 2 4 6 8 5]; assert(isequal(check_ave(data),output_correct))

2   Pass
data=[... 1 3 6 7 9 3 5 6 9 1 2 4 6 8 5]; output_correct = data; assert(isequal(check_ave(data),output_correct))

3   Pass
data=[... 2 3 0 0 6 1 3 6 0 1 3 3 6 9 2 2 3 4 3 3]; output_correct = data; assert(isequal(check_ave(data),output_correct))

4   Pass
data=[... 2 3 0 0 6 1 3 6 0 1 3 3 6 9 2]; output_correct =[... 2 3 0 0 6 1 3 6 0 1 3 3 6 9 2 2 3 4 3 3]; assert(isequal(check_ave(data),output_correct))

5   Pass
data = [1:1000;999:-1:0]; output_correct =[data;repmat(500,1,1000)]; assert(isequal(check_ave(data),output_correct))