;
0045     newimg = interp3( Y,X,Z, img, YI,XI,ZI ,<span class="string">'nearest'</span>);
0046     <span class="keyword">return</span>;
0047 <span class="keyword">end</span>
0048 
0049 p = size(img,1);
0050 q = size(img,2);
0051 [Y,X] = meshgrid( (0:q-1)/(q-1), (0:p-1)/(p-1) );
0052 [YI,XI] = meshgrid( (0:q1-1)/(q1-1), (0:p1-1)/(p1-1) );
0053 newimg = interp2( Y,X, img, YI,XI,<span class="string">'nearest'</span>);</pre></div>
<hr><address>Generated on Wed 27-Jun-2018 12:51:54 by <strong><a href="http://ww