Cody

Solution 1976046

Submitted on 14 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 = [4 6 7; 0 2 3; 2, -3, 6]; b = [-3; 8; 5]; Ab = [A,b]; Ab(end,:)=[0, -6, 5/2, 13/2]; assert(isequal(ForwardEliminate([A,b],1),Ab))

Unrecognized function or variable 'A'. Error in ForwardEliminate (line 6) Ab=[A b]; Error in Test1 (line 5) assert(isequal(ForwardEliminate([A,b],1),Ab))

2   Fail
A = [4 6 7; 0 2 3; 2, -3, 6]; b = [-3; 8; 5]; Ab = [A,b]; Ab(end,:)=[0, -6, 5/2, 13/2]; Ab2 = Ab; Ab2(3,:) = Ab(3,:) + 3*Ab(2,:); assert(isequal(ForwardEliminate(Ab,2),Ab2))

Unrecognized function or variable 'A'. Error in ForwardEliminate (line 6) Ab=[A b]; Error in Test2 (line 7) assert(isequal(ForwardEliminate(Ab,2),Ab2))