OLS

This functions implements the algorithm of Orthogonal Least Squares.It can be used to rank regressor
5.9K Downloads
Updated 2 Dec 2014

View License

[x, ind] = OLS(A,b,r) gives the solution to the least squares problem
using only the best r regressors chosen from the ones present in matrix A.
This function also returns in the vector ind the indexes of the
best r regressors (i.e., the best columns of A to use).

Cite As

Marco Cococcioni (2024). OLS (https://www.mathworks.com/matlabcentral/fileexchange/15902-ols), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
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.2.0.0

Little improvements on the documentation.

1.1.0.0

Little improvement to the short description of the function.

1.0.0.0