Cody

Solution 1963616

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

Error using linsolve Not enough input arguments. Error in your_fcn_name (line 2) y = linsolve(A*B); Error in Test1 (line 4) assert(isequal(your_fcn_name(A,B),y_correct))

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

Error using linsolve Not enough input arguments. Error in your_fcn_name (line 2) y = linsolve(A*B); Error in Test2 (line 4) assert(isequal(your_fcn_name(A,B),y_correct))

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

Error using linsolve Not enough input arguments. Error in your_fcn_name (line 2) y = linsolve(A*B); Error in Test3 (line 4) assert(isequal(your_fcn_name(A,B),y_correct))