The test suit only tests points that are inside or outside but not on the boundary of the polygon
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.
Maybe, thinking this problem in topology aspect is useful.
random picture with random colours
Project Euler: Problem 4, Palindromic numbers
Find perfect placement of non-rotating dominoes (easier)
middleAsColumn: Return all but first and last element as a column vector
Length of the hypotenuse
Maintain shape of logical-index mask
Right and wrong
Increment a number, given its digits
Factorize THIS, buddy
Figurate number triangle
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office