Least-Squares optimal affine subspace

Computes the affine subspace (eg, line, plane) that optimally fits the input data


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 (2023). 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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes