Doug's MATLAB Video Tutorials

January 21st, 2008

Practical Example: Generating points inside a polygon

Notice the link at the bottom for a one minute survey that can get you into a drawing for a MATLAB t-shirt! This ten minute video shows how to modify the help example for INPOLYGON to generate a set number of points inside of a random polygon. The coding process is shown from beginning to end, with incremental testing, debugging and commentary on my though process.
iconFiles.jpgiconFree.jpgiconPod.jpg

2 Responses to “Practical Example: Generating points inside a polygon”

  1. Ryan Gray replied on :

    It seems there’s a problem again with your M4V conversion. Quicktime and iTunes say it’s MPEG-4 video, but they don’t think it has a video track and only play audio.

  2. Doug replied on :

    Ryan,

    Seems there was a slight change in file output since I wrote my MATLAB scripts that automate FTPing the files up to the server. Problem solved now. Thanks!

    Doug

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

Doug's picture

These postings are the author's and don't necessarily represent the opinions of The MathWorks.