Least square method for cost computation
gradient descent for iterating the theta value
linear curve fitting the data set and data plot.
Krishna Prakash Yadav (2021). Linear Regression Machine learning (https://www.mathworks.com/matlabcentral/fileexchange/77963-linear-regression-machine-learning), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Linear Gradient Descent from lectures of Andrew Ng
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!