title: Apply a function to each element of a matrix in Matlab
body: <p>I have a 480x640 sized matrix(Lets say <code>A</code>). And I want another matrix (<code>B</code>) of the same size where each element in <code>B</code> is the <code>exp()</code> of that corresponding element in <code>A</code>.<br>
  Is there an elegant way of dong this apart from a regular for loop ?</p>