title: Is there any way to delete a rectangle in matlab figure?
body: <p>I plot some data on a matlab figure. Then I draw a rectangle using the command</p>
  
  <pre><code>rectangle('Position',[x,y,w,h])
  </code></pre>
  
  <p>The rectangle appears on the plotted matlab figure. After that I want to remove that rectangle. But I found that I cannot click on it and delete it. Deleting the figure and plotting all data again is fine to me. I just wonder if there is any way to delete just the rectangle drawn by the command above.</p>