title: Setting to use matlab `integral` with a (only) scalar function?
body: <p>I have a function which cannot be easily written easily to take a vector input and return a vector output.  The builtin <code>integral</code> function seems to expect this, and is evaluating a number of locations at the same time.  Is there any way to turn this off?</p>
  
  <p>i.e., the simplest test case is</p>
  
  <pre><code>f = @(x) x * x; % intended to be univariate
  integral(f, 0, 1); %I only want to have it call with univariate inputs.
  </code></pre>
  
  <p>where I am purposefully not setting the function to be <code>x .* x</code> in order to test the univariate input.  Obviously, my function is a lot more complicated than this and cannot be vectorized.</p>