Use MATLAB to draw arbitrarily shaped polygons via ginput, and identify any coordinates that are inside those polygons via inpolygon.
You can download the completed code here (although I encourage you to follow along with the video so you can pause and try to solve the challenges yourself!):
http://sincxpress.com/findDotsPolygon.m
For more educational material, including courses and books, see sincxpress.com