Cody

Solution 1010846

Submitted on 12 Oct 2016 by Sean Kyle Ongchangco
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   Pass
x = [1 2 3 4 5]; sum_input = 15; sum_output = 24; vec_sum_adjacent = [3 5 7 9] [a b c] = your_fcn_name(x) assert(isequal(a,sum_input)) assert(isequal(b,sum_output)) assert(isequal(c,vec_sum_adjacent))

vec_sum_adjacent = 3 5 7 9 a = 15 c = 3 5 7 9 b = 24 a = 15 b = 24 c = 3 5 7 9