Cody

Solution 2265896

Submitted on 9 May 2020
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 = pascal(3); b=[3; 1; 4]; y_correct = [10;-12; 5;] assert(isequal(solveSystem(A,b),y_correct))

y_correct = 10 -12 5

Error using / Matrix dimensions must agree. Error in solveSystem (line 2) x=b/A; Error in Test1 (line 4) assert(isequal(solveSystem(A,b),y_correct))

2   Fail
A = eye(3); b=[3; 1; 4]; y_correct = [3;1;4] assert(isequal(solveSystem(A,b),y_correct))

y_correct = 3 1 4

Error using / Matrix dimensions must agree. Error in solveSystem (line 2) x=b/A; Error in Test2 (line 4) assert(isequal(solveSystem(A,b),y_correct))