Cody

Solution 161562

Submitted on 13 Nov 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=[2 3 7; 0 5 8; 0 0 9]; b=[12; 13; 9]; y_correct = [1; 1; 1]; assert(isequal(my_backsub(A,b),y_correct))
ans = Inf ans = 1 1 1
2   Pass
%% A=[2 3 7; 0 5 8; 1 0 9]; b=[12; 13; 9]; y_correct = [inf]; assert(isequal(my_backsub(A,b),y_correct))
ans = Inf
3   Pass
%% A=[7.9200 9.5900 6.5600 0 8.4900 9.3400 0 0 7.4300]; b=[ 66.3400 48.4000 52.0100]; y_correct = [5; -2; 7]; assert(isequal(my_backsub(A,b),y_correct))
ans = Inf ans = 5 -2 7