title: MATLAB Create an array from a for loop
body: <p>I have to create an array from the outputs of a for loop. For example, if the for loop was:</p>
  
  <pre><code>for i=[0.01, 0.02, 0.05]
      exp(i)
  end
  </code></pre>
  
  <p>I should create an array such as</p>
  
  <pre><code>[exp(0.01) exp(0.02) exp(0.03)]
  </code></pre>
  
  <p>How can I do that? Thanks.</p>