Problem 117. Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance. If input xyz =[3 4 2; 0 0 2; 0 1 2; 1 1 2; 1 1 20] then output w=25.
Solution Stats
Problem Comments
-
2 Comments
Jean-Marie Sainthillier
on 20 Jul 2012
Very nice !
Vivek
on 4 Feb 2014
please explain the problem
Solution Comments
Show commentsProblem Recent Solvers276
Suggested Problems
-
2272 Solvers
-
Increment a number, given its digits
638 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
803 Solvers
-
Sum the elements in either diagonal of a square matrix
209 Solvers
-
Solving Quadratic Equations (Version 1)
480 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!