title: running a function and saving multiple outputs in matlab with different inputs
body: <p>lets say you have some function</p>
  
  <pre><code>x = foo(alpha, beta);
  </code></pre>
  
  <p>and you want to test the function for different alpha values while saving the different x values with a name associated to the different alpha values. </p>
  
  <p>For example if <code>alpha = 1:1:10;</code>
  then then i would like to save <code>x_1 , x_2 ,........,x_9 , x_10</code> as separate results</p>
  
  <p>I've tried running different loops and such but I can't figure out how to keep the x values from being replaced</p>