keyword>if</span>&nbsp;~isempty(x)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[r&nbsp;c]=&nbsp;index(&nbsp;[&nbsp;x(1)&nbsp;y(1)&nbsp;]&nbsp;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cells&nbsp;=&nbsp;getappdata(&nbsp;<span class=graph>gcf</span>,&nbsp;<span class=quotes>'cells'</span>&nbsp;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cells{r,c}&nbsp;=&nbsp;[cells{r,c}&nbsp;last];<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setappdata(&nbsp;<span class=graph>gcf</span>,&nbsp;<span class=quotes>'cells'</span>,&