Point-Ellipse Orthogonal Distance

Version 1.0.0 (7.82 KB) by Siyu Guo
MATLAB codes to compute the orthogonal distance between a point and an ellipse, and the orthogonal contacting point on the ellipse.
28 Downloads
Updated 17 Apr 2020

View License

MATLAB codes to compute the orthogonal distance between a point and an ellipse, and the orthogonal contacting point on the ellipse.

Three algorithms are implemented whose source code is deposited here: the algorithm proposed in (Ahn 2001) "Least-squares orthogonal distances fitting of circle, sphere, ellipse, hyperbola, and parabola," Pattern Recognition; the exact algorithm and the convergent iterative algorithm proposed in April, 2020 by Siyu Guo et al.

The M-file name for the algorithms are ellipse_orthogonal_dist_arw01.m, ellipse_orthogonal_dist_exact.m and ellipse_orthogonal_dist_ci.m, respectively.

Two C++ source files are also provided, namely, arw01_mex.cpp and ci_mex.cpp. Use mex to compile them into the MEX modules used in the M-files.

exprm_1.m, exprm_2.m and exprm_3.m are three demonstrations without input or output. draw_ellipse.m is used in the demonstrations to draw an ellipse in a MATLAB figure.

Cite As

Siyu Guo (2025). Point-Ellipse Orthogonal Distance (https://se.mathworks.com/matlabcentral/fileexchange/75072-point-ellipse-orthogonal-distance), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
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
1.0.0