Cody

Solution 1207215

Submitted on 7 Jun 2017 by Said BOUREZG
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
A=[1 1;1 2]; B=[2 3]'; y_correct = [1 1]'; assert(isequal(your_fcn_name(A,B),y_correct))

s1 = 0 -1 -1 s2 = 1 0 1 ans = 1 1

2   Pass
A=[1 1;1 2]; B=[9 10]'; y_correct = [8 1]'; assert(isequal(your_fcn_name(A,B),y_correct))

s1 = 0 -1 -1 s2 = 1 0 8 ans = 8 1

3   Pass
A=[1 3;1 2];; B=[9 10]'; y_correct = [12 -1]'; assert(isequal(your_fcn_name(A,B),y_correct))

s1 = 0 1 -1 s2 = -1 0 -12 ans = 12 -1