Cody

# Problem 423. System of equations

Solution 2940661

Submitted on 12 Sep 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=[2 0 4; 2 4 8]; y_correct = [ 2 1 ]; assert(isequal(system_eq(a),y_correct))

Error using / Matrix dimensions must agree. Error in system_eq (line 4) v = round(A/b) Error in Test1 (line 3) assert(isequal(system_eq(a),y_correct))

2   Fail
a=[1 -1 2 21; 0 2 5 21; 4 0 -3 21]; y_correct = [ 9 -2 5 ]; assert(isequal(system_eq(a),y_correct))

Error using / Matrix dimensions must agree. Error in system_eq (line 4) v = round(A/b) Error in Test2 (line 3) assert(isequal(system_eq(a),y_correct))

3   Fail
a=[ 3 3 0 6; 5 -7 1 -9; 9 3 -2 26]; y_correct = [1 1 -7]; assert(isequal(system_eq(a),y_correct))

Error using / Matrix dimensions must agree. Error in system_eq (line 4) v = round(A/b) Error in Test3 (line 3) assert(isequal(system_eq(a),y_correct))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!