edial axis</a></li>
               <li><a href="#3">Draw result</a></li>
            </ul>
         </div>
         <h2>Generate random polygon<a name="1"></a></h2><pre class="codeinput"><span class="comment">% clean up</span>
clear <span class="string">all</span>;
close <span class="string">all</span>;

<span class="comment">% generate random points in a square</span>
pts = rand(50, 2)*100;

<span class="comment">% compute the polygon corersponding to their convex hull</span>
hull = convhull(pt