title: Passing a constant to fminsearch
body: <p>How can I pass a constant to fminsearch?  So like, if I have a function:</p>
  
  <p>f(x,y,z), how can I do an fminsearch with a fixed value of x?</p>
  
  <pre><code>fminsearch(@f, [0,0,0]);
  </code></pre>
  
  <p>I know I can write a new function and do an fminsearch on it:</p>
  
  <pre><code>function returnValue = f2(y, z)
  
  returnValue = f(5, y, z);
  
  ...
  
  fminsearch(@f2, [0,0]);
  </code></pre>
  
  <p>My requirement, is I need to do this without defining a new function.  Thanks!!!</p>