title: improve loop performance in MATLAB
body: <p>Is there any way to improve performance with this kind of operation?</p>
  
  <pre><code>t=0:0.01:100;
  f=@(t,l) exp(-t.*l)
  l=[0.1:0.5:100];
  for ll=1:length(l)
      a(ll,:)=f(t,l(ll));
  end 
  </code></pre>
  
  <p>I cannot think of any way to avoid the loop in these cases.</p>
  
  <p>Any help is appreciated .</p>