title: Draw polygon with hole inside
body: <p>I need to draw a rectangle polygon with a rectangle hole inside. I found this piece of code but I couldn't manage to understand how I can modify to meet my requirement.</p>
  
  <pre><code> figure()
   p  = [0 0; 0 1; 1 1; 1 0]; %ccw
   pp = [0 0; 1 0; 1 1; 0 1]; %cw
   ph = p + [1.2 0];
   # add hole
   ph(end+1,:) = nan;
   ph = [ph; (pp-[0.5 0.5])*0.5+[1.7 0.5]];
   po = polygon2patch (ph);
   patch (po(:,1), po(:,2), 'b', 'facecolor', 'c');
   axis image
  </code></pre>