title: Passing additional iteration-dependent inputs to ode45
body: <p>I'm trying to solve differential equation using the <code>ode45</code> function. Consider the following code,</p>
  
  <pre><code>[t1,X2] = ode45(@(t,x)fun(t,x,C1,C2,C3,C4),t0,X01);
  </code></pre>
  
  <p>where parameters <code>C1</code>, <code>C2</code>, <code>C3</code> and <code>C4</code> are column vectors, which should be available to the function that <code>ode45</code> is referring to (<code>fun.m</code>). I want the values to change after every iteration, so for example, at the beginning the entry of <code>C1</code> I want in is <code>C1(1)</code>, in the next iteration it's <code>C1(2)</code>, etc. </p>
  
  <p>How can I implement that?</p>