Gradient Descent for Linear Curve Fitting

Gradient Descent method to calculate the optimal linear curve fitting a data.
154 Downloads
Updated 6 Dec 2018

View License

The Data X and Y should be column vectors. The file Gradient_Descent needs to be run to get the optimal parameters and the plots associated. The user needs to enter the values of X and Y in the space provided. All files need to be in the same folder for the program to run smoothly. The function file grad_desc calculates the optimal parameter values.

Cite As

SObhan Chatterjee (2024). Gradient Descent for Linear Curve Fitting (https://www.mathworks.com/matlabcentral/fileexchange/69643-gradient-descent-for-linear-curve-fitting), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear and Nonlinear Regression in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0