Cody

Solution 1997399

Submitted on 31 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
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)

Error using answerMe Too many input arguments. Error in Test1 (line 4) assert(sum((transpose(answerMe(xyz,abc))-y_correct))<0.01)

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

Error using answerMe Too many input arguments. Error in Test2 (line 4) assert(isequal(nnz(answerMe(xyz,abc)-y_correct),0))