Problem 2317. Distance of the centroids of the balls
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
Piotr Lesniewski
on 19 Feb 2020
Perhaps the "default" solution should not be the one actually solving the problem?
Rafael S.T. Vieira
on 13 Jul 2020
maybe an admin could, please, erase the solution from the default?
goc3
on 28 Sep 2020
The default function has been updated to not reveal the solution.
Solution Comments
Show commentsGroup

Physics
- 18 Problems
- 13 Finishers
- Mechanics 1
- jogging?
- Bouncing disk
- Energy of an object
- Kepler's Equation
- Mechanical Advantage of a Gear Train
- What gear ratio does the cyclist need?
- Bernoulli's Equation
- Juggling
- Find the jerk
- Determine if a four bar mechanism is of Grashof type
- center of mass
- Center of mass
- Elastic Collision 001: 1-D
- Calculate compression ratio of engine
- Distance of the centroids of the balls
- Calculate the height of an object dropped from the sky
- How Far Can You Throw Something?
Problem Recent Solvers58
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!