Cody

Solution 1584379

Submitted on 16 Jul 2018 by Jiahang Li
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
a=[2 0 4; 2 4 8]; y_correct = [ 2 1 ]; assert(isequal(system_eq(a),y_correct))

b = 4 8 a = 2 0 2 4 v = 2 1

2   Pass
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))

b = 21 21 21 a = 1 -1 2 0 2 5 4 0 -3 v = 9 -2 5

3   Pass
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))

b = 6 -9 26 a = 3 3 0 5 -7 1 9 3 -2 v = 1 1 -7

Suggested Problems

More from this Author1