hyperellipsoidfit
The function HYPERELLIPSOIDFIT.M fits a quadratic surface to given n-dimensional data. It has been written especially for ellipsoid fitting purposes. It contains n-dimensional elaborations of several ellipse fitting methods, and includes a method that is guaranteed to produce an ellipsoidal solution in n-dimensional space regardless of the data. It includes also a regularization method that can be used to force the solutions towards spheres and to solve ill-posed fitting problems.
.
The implemented methods are described in Kesäniemi-Virtanen, "Direct Least Square Fitting of Hyperellipsoids", IEEE Transactions on Pattern Analysis and Machine Intelligence.
.
The other function in the package, DEMO.M, uses HYPERELLIPSOIDFIT function to illustrate the 3D results produced by various fitting methods with three different regularization parameter values.
Cite As
Martti K (2026). hyperellipsoidfit (https://se.mathworks.com/matlabcentral/fileexchange/59186-hyperellipsoidfit), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Ellipsoid Fitting, Fitting quadratic curves and surfaces
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.6.0.0 | Fixed a bug in input parameter handling, added possibility to get outputs as struct. |
||
| 1.5.0.0 | Update for 2017b |
||
| 1.4.0.0 | Updated for 2017A |
||
| 1.3.0.0 | Reference update |
||
| 1.2.0.0 | Fix to demo |
||
| 1.1.0.0 | Fix to the comments / function help. |
||
| 1.0.0.0 |
