Cody

Solution 177135

Submitted on 14 Dec 2012 by Aurelien Queffurust
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 = [3 2; -1, 2]; b = [18; 2]; [Ab,x]=GaussEliminate2eqs(A,b); Ab_correct = [A,b]; Ab_correct(2,:) = [0 8/3 8]; x_correct = [4; 3]; assert(isequal(Ab,Ab_correct)) assert(isequal(x, x_correct))
x = 4 3 Ab = 3 2 18 -1 2 2 Ab = 3.0000 2.0000 18.0000 0 2.6667 8.0000