You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
[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 (2026). OLS (https://www.mathworks.com/matlabcentral/fileexchange/15902-ols), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (5.58 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
