title: Not enough input arguments error in matlab
body: <p>This is my matlab code , I got  Not enough input argument error in line 2 and i don't know how to fix it. Anyhelp ? Thanks in advance .</p>
  
  <pre><code>function [] = Integr1( F,a,b )
  i = ((b - a)/500);
  x = a;k = 0; n = 0;
  while x &lt;= b
      F1 = F(x);
      x = x + i;
      F2 = F(x);
     m = ((F1+F2)*i)/2;
      k = k +m;
  end
  k
  x = a; e = 0; o = 0;
  while x &lt;= (b - 2*i)
      x = x + i;
      e = e + F(x);
      x = x + i;
      o = o + F(x);
  end
  n = (i/3)*(F(a) + F(b) + 2*o + 4*e)
  </code></pre>