title: Matlab Integral with passing in a constant variable.
body: <p>I have the following code, trying to integrate a function f with respect to the variable t, but needing to accept the parameter cfb (which has to be calculated beforehand).  How do I pass in cfb via the int() function?</p>
  
  <p><code>f = @(t) (cfb.*t)</code></p>
  
  <p>...
  <code>cfb = %Something</code></p>
  
  <p><code>d = integral(f, 0, upperLimit)</code></p>
  
  <p>How do I change this code so that f can take both t (from integral) and cfb as parameters?  I tried just changing it so <code>f=@(t,cfb)</code> and <code>integral(f(cfb)...</code>, but that just resulted in an error that f wasn't taking in enough parameters.</p>