Cody

Solution 1981435

Submitted on 18 Oct 2019
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   Fail
x = [15,17]; y_correct = 0; assert(isequal(GetSumOf3Numbers(x),y_correct)) x = [1]; y_correct = 0; assert(isequal(GetSumOf3Numbers(x),y_correct)) x = [1,2,3]; y_correct = 6; assert(isequal(GetSumOf3Numbers(x),y_correct)) x = [4,9,2,6,1,7]; y_correct = [15,17,9,14]; assert(isequal(GetSumOf3Numbers(x),y_correct))

Output argument "y" (and maybe others) not assigned during call to "GetSumOf3Numbers". Error in Test1 (line 3) assert(isequal(GetSumOf3Numbers(x),y_correct))