Least-Squares optimal affine subspace
Version 1.0.0.0 (3.55 KB) by
Ofek Shilon
Computes the affine subspace (eg, line, plane) that optimally fits the input data
2.9K Downloads
Updated
8 Aug 2006
No License
The zip includes:
(1) lsqAffineSpace: a 'low level' routine that takes a set of m-dimensional real sample data and returns the optimal-fit k-dimensional affine subspace, with some options for discarding outliers.
(2) lsqPlane and lsqLine: lsqAffineSpace wrappers, that compute optimal line and hyperplane (plane, if the samples are 3-vectors) of the input samples.
(3) lsqAffineTestScript: demonstrating usage of the functions.
Cite As
Ofek Shilon (2026). Least-Squares optimal affine subspace (https://www.mathworks.com/matlabcentral/fileexchange/11920-least-squares-optimal-affine-subspace), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2006a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Linear and Nonlinear Regression in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
