File Exchange Pick of the Week

Our best user submissions

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.


Video Content

 

|
  • print

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。