Determine the radius of a sphere provided four non-coplanar points on the surface of the sphere.
pts = [x1 y1 z1;
x2 y2 z2;
x3 y3 z3;
x4 y4 z4]Hint: See http://steve.hollasch.net/cgindex/geometry/sphere4pts.html
Example:
pts = [1 0 0;
0 1 0;
0 0 1;
-1 0 0]
r=1
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers251
Suggested Problems
-
430 Solvers
-
Matrix indexing with two vectors of indices
775 Solvers
-
399 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
884 Solvers
-
835 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!