Cody

Solution 1576065

Submitted on 5 Jul 2018 by David Verrelli
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
xyz = [1 -1 2; 0 2 5; 4 0 -3]; abc = [21; 21; 21]; y_correct = [ 9 -2 5 ]; assert(sum((transpose(answerMe(xyz,abc))-y_correct))<0.01)

x = 9 -2 5

2   Pass
xyz = [1 2; 1 -2]; abc = [3; -1]; y_correct = [ 1 1]; assert(isequal(nnz(answerMe(xyz,abc)-y_correct),0))

x = 1 1