Given a matrix of format [x1,y1,z1,m1; x2,y2,z2,m2 . . .], return the center of mass of all listed points in 3d space [xc,yc,zc]. Return pt_com = 'Bad Data' if any value for mass is negative
Inspired by: http://hyperphysics.phy-astr.gsu.edu/hbase/cm.html
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers18
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15819 Solvers
-
Set some matrix elements to zero
645 Solvers
-
Set the array elements whose value is 13 to 0
1458 Solvers
-
How long do each of the stages of the rocket take to burn?
564 Solvers
-
Create an index-powered vector
967 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!