Problem 198. Are you in or are you out?
Solution Stats
Problem Comments
-
3 Comments
Yuval Cohen
on 31 Jan 2012
The test suit only tests points that are inside or outside but not on the boundary of the polygon
Peter Cook
on 6 Jun 2015
Cyclist, this was a pretty tough problem to solve without resorting to Googling a solution or something similar. I ended up with a function that will work for any n-sided polygon. Thanks for the weekend challenge.
Yang Yang
on 20 Apr 2018
Maybe, thinking this problem in topology aspect is useful.
Solution Comments
Show commentsProblem Recent Solvers224
Suggested Problems
-
Return the 3n+1 sequence for n
7569 Solvers
-
Remove any row in which a NaN appears
8128 Solvers
-
273 Solvers
-
1216 Solvers
-
Output any real number that is neither positive nor negative
378 Solvers
More from this Author23
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!