Problem 193. Smallest distance between a point and a rectangle
Solution Stats
Problem Comments
-
1 Comment
Sam
on 8 Oct 2014
For the n dimensional case it would be better to say that x and y lie on opposite vertices of the n-hypercuboid such that each edge is parallel to a coordinate axis.
Solution Comments
-
1 Comment
Alfonso Nieto-Castanon
on 31 Jan 2012
nice trick :)
Problem Recent Solvers163
Suggested Problems
-
3237 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
1682 Solvers
-
491 Solvers
-
Make a random, non-repeating vector.
6447 Solvers
-
Matrix with different incremental runs
332 Solvers
More from this Author38
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!