sp;sz(1)/sz(2)&nbsp;)<br>
&nbsp;&nbsp;scale&nbsp;=&nbsp;sz(1)&nbsp;/&nbsp;sy;<br>
<span class=keyword>else</span><br>
&nbsp;&nbsp;scale&nbsp;=&nbsp;sz(2)&nbsp;/&nbsp;sx;<br>
<span class=keyword>end</span><br>

<br>
<span class=keyword>for</span>&nbsp;hnd&nbsp;=&nbsp;h<br>
<span class=comment>%&nbsp;&nbsp;set(&nbsp;hnd,&nbsp;'erasemode',&nbsp;'normal'&nbsp;);</span><br>
<span class=comment>%&nbsp;&nbsp;set(&nbsp;hnd,&nbsp;'xdata',&nbsp;...</span><br>
<span class=comment>%&nbsp;&nbsp;&nbsp;&nbsp;(&nbsp;get(&n