This is an implementation for the Least-squares Fitting regression algorithm that doesn't use any Toolboxes. In addition, the code solves a classification problem using such Least-squares Fitting regression. More details can be found in my article: https://heraqi.blogspot.com/2016/07/regression-for-classification.html
Cite As
Hesham Eraqi (2025). Least Squares Fitting (https://www.mathworks.com/matlabcentral/fileexchange/68452-least-squares-fitting), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2018a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.