gradient_descent, a MATLAB code which uses gradient descent to solve a linear least squares (LLS) problem.
The information on this web page is distributed under the MIT license.
gradient_descent is available in a MATLAB version and an Octave version and a Python version.
llsq, a MATLAB code which solves the linear least squares (LLS) problem. It finds the "best" straight line to match data points. More precisely, it finds the quantities "a" and "b" defining the straight line y=a*x+b, which minimizes the root-mean-square (RMS) error to the data.