Untitled

                Never    
for i=1:length(y)
obiekt=(y(i)-ocena(1))^2+obiekt;
%ocena(1)+ocena(2)*U(i,2) to y=b0+b1*u, ewentualnie trza zmodyfikowac
model=((ocena(1)+ocena(2)*U(i,2))-ocena(1))^2+model;
end

Raw Text