Question: function X = myGaussJordan ( A , B ) n = size ( A , 1 ) ; X = [ A , B ]
function X myGaussJordanA B
n sizeA;
X A B;
for i :n
~ maxrow maxabsXi:n i;
maxrow maxrow i ;
Xi maxrow :) Xmaxrow, i :;
pivot Xi i;
if abspivote
errorMatrix is singular or poorly conditioned.;
end
Xi :) Xi :) pivot;
for j :n
if i ~ j
Xj :) Xj :) Xj i Xi :;
end
end
end
X X: n:end;
end
A ;
;
;
B ;
;
;
X myGaussJordanA B;
dispSolution:;
dispX;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
