Least-Squares optimal affine subspace

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 (2024). 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 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.0