Sphere Fit (least squared)
by Alan Jennings
08 Dec 2011
(Updated 02 Jul 2013)
Fits a sphere to a set of noisy data. Does not require a wide arc or many points.
|
Watch this File
|
| File Information |
| Description |
Given a set of data points, this function calculates the center and radius of the data in a least squared sense. The least squared equations are used to reduce the matrix that is inverted to a 3x3, opposed to doing it directly on the data set. Does not require a large arc or many data points. Assumes points are not singular (co-planar) and real...
Created on R2010b, but should work on all versions. |
| Required Products |
MATLAB
|
| MATLAB release |
MATLAB 7.11 (R2010b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 02 Jul 2013 |
Since the matrix A is symmetric, I changed the calculation to avoid superfluous calculations. Runs about 25% faster, and even better for large data sets. |
|
Contact us