for k=n:n-2, for i=n-1:1 m=A(i,k)/A(k,k) for j=n:1 A(i,j)=A(i,j)-A(k,j)*m end b(i)=b(i)-b(k)*m endend
I am trying to write a for loop code for Guess Jordan Elimination, where n=length(b) A and b are both matrices of a system of equations.
I think the problem is with k because the value of k in the workspace is []
Best Answer