This submission offers a tool set for fitting 2D conics (ellipses, circles, lines,...) as well as 3D quadric surfaces (ellipsoids, spheres, planes, cylinders,...). Each type of fit is represented by an object within a class hierarchy. For each fit type, overloaded methods are provided for generating noisy test data, fitting the data, and visualizing and post-sampling the results.
Currently, not all curve/surface types in the conic/quadric family are covered by this tool set. Though I may add more over time, I've started with a subset of the ones that seem to be the most commonly encountered. Similarly, most fitting algorithms used by the tool set are very basic algebraic methods, although I may add more refined algorithms if an interest is expressed.
Various example uses of these tools are illustrated in the Examples tab.
Matt J (2021). Object-oriented tools for fitting conics and quadrics (https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-for-fitting-conics-and-quadrics), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.