You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x(1) = b(1,1)/A(1,1);%manually calculating the first value of x vector
for i=2:n %using for loop to itterate through
x(i) = (b(i,1) - A(i,1:i-1)*x(1:i-1))/A(i,i);%takeing the sum of the so far calculated values off the RHS of the equasion and dividing by the coeficcient of the x element that is being calculated