mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 16:43:12 +02:00
11 lines
336 B
Matlab
11 lines
336 B
Matlab
function [Matrix, Vector, x] = backSubstitutionPhase(Columns, Matrix, Vector)
|
|
for i3 = Columns : -1 : 1
|
|
|
|
E = 0;
|
|
for iter = i3+1 : Columns
|
|
E = E + Matrix(i3,iter) * x(iter,1);
|
|
end % end for
|
|
|
|
x(i3, 1) = (Vector(i3,1) - E) / Matrix(i3,i3);
|
|
end % end for
|
|
end % end function |