&lt;= 0 || y &lt;= 0)
    i = 0;
    <span class="keyword">return</span>;
<span class="keyword">end</span>
<span class="keyword">if</span> (x &gt; w || y &gt; h)
    i = 0;
    <span class="keyword">return</span>;
<span class="keyword">end</span>
i = I(y,x);
<span class="keyword">end</span>
</pre><p class="footer"><br>
      Published with MATLAB&reg; 7.12<br></p></div><!--
##### SOURCE BEGIN #####
function elasticDistortionsDemo()
%% Illustrate elastic deformations
%PMTKauthor Kevin Swersky

%load good