@ -18,6 +18,8 @@ for iter = 1:num_iters
%
theta = theta - (alpha/m) * X' * (X*theta - y);
J = computeCost(X, y, theta)
% ============================================================
% Save the cost J in every iteration