Cody

Solution 1610989

Submitted on 17 Aug 2018
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 = [ 1 2 3 ]; y = [1 -1 3 ]; I = 6 J = 3 ans = 1 assert(isequal(sum_of_vector(x),y_correct))

I = 6 J = 3 ans = 1

Not enough input arguments. Error in sum_of_vector (line 2) if sum(x)>sum(y) Error in Test1 (line 6) assert(isequal(sum_of_vector(x),y_correct))