Stuart’s MATLAB Videos

Watch and Learn

Practical Example: Placing a sampling grid in a polygon

A while back, I posted a video about how to place points randomly inside of an arbitrary polygon. [Click here] This video prompted a question about how to place points in a more systematic manner. If you are only allowed to change the edge length of an equilateral triangular grid, how can you get a set number of points into a given polygon. This is the first in a two part series on how to do that. This video focuses on how to generate the grid. The second video will cover how to vary the edge length until the goal of getting a set number of points into the polygon is reached.
  • print
  • send email


To leave a comment, please click here to sign in to your MathWorks Account or create a new one.