This function uses a dumb search to find the minimum distance between a point (or many points) and an ellipse. It has controllable accuracy which may be reduced for faster computation.
*Update 12 Jan 2010: Rody Oldenhuis has submitted a version of this file (possibly only for versions >=Matlab 2009a) that works for general 3D ellipses and should be more efficient than this one. Please see acknowledgements below.
*Update 08 Jan 2010: fixed a bug in original file
Matthew Arthington (2021). Distance from points to an ellipse (https://www.mathworks.com/matlabcentral/fileexchange/26261-distance-from-points-to-an-ellipse), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Distance between points and ellipse
Inspired: Distance between points and ellipse
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!