File Exchange

image thumbnail


version 1.0 (1.53 KB) by

A function to fit a circle to a set of 2D points



View License

Given a scatter of 2D points, circle fit will find the center and radius of the best (in the least-squares sense) fit circle.

Comments and Ratings (3)


li (view profile)

Val Schmidt

Val Schmidt (view profile)

Ah! Thanks. Very helpful.


Eric (view profile)

This seems equivalent to Also, other algorithms are often more accurate when fitting data along only an arc (e.g., ).

A good reference for fitting data to circles: "Least Squares Fitting of Circles" by N. Chernov and C. Lesort, Journal of Mathematical Imaging and Vision, Vol 23, 239-252 (2005). Nikolai Chernov has several good functions in the FEX for fitting to circles and ellipses.

MATLAB Release
MATLAB 7.13 (R2011b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video