Given n balls of radius r and the vector p (nx3) with all position (x,y,z) of the balls, return the symmetric matrix A (nxn) containing all distance between the centroid of all balls (diagonal terms should be all 0).
Two or more balls can overlap.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers70
Suggested Problems
-
middleAsColumn: Return all but first and last element as a column vector
653 Solvers
-
Given a matrix, return the last eigen value
233 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
735 Solvers
-
Integer Sequence - II : New Fibonacci
700 Solvers
-
Matlab Basics - Switching Assignments
511 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Perhaps the "default" solution should not be the one actually solving the problem?
maybe an admin could, please, erase the solution from the default?
The default function has been updated to not reveal the solution.