function x=donjiSistem(A,y) n=size(A,1); for i=1:n pom = 0; for j = 1:i-1 pom = pom+A(i,j)*x(j,1); end x(i,1) = (y(i,1)-pom)/A(i,i); end