a href="image_resize.html" class="code" title="function newimg = image_resize(img,p1,q1,r1)">image_resize</a>(img(:,:,m), p1, q1);
0037     <span class="keyword">end</span>
0038     <span class="keyword">return</span>;
0039 <span class="keyword">elseif</span> ndims(img)==3
0040     p = size(img,1);
0041     q = size(img,2);
0042     r = size(img,3);
0043     [Y,X,Z] = meshgrid( (0:q-1)/(q-1), (0:p-1)/(p-1), (0:r-1)/(r-1)  );
0044     [YI,XI,ZI] = meshgrid( (0:q1-1)/(q1-1), (0:p1-1)/(p1-1), (0:r1-1)/(r1-1) )