title: Get function handle of fit function in matlab and assign fit parameters
body: <p>I'm fitting custom functions to my data.
  After obtaining the fit I would like to get something like a function handle of my fit function including the parameters set to the ones found by the fit.
  I know I can get the model with </p>
  
  <pre><code>formula(fit) 
  </code></pre>
  
  <p>and I can get the parameters with </p>
  
  <pre><code>coeffvalues(fit) 
  </code></pre>
  
  <p>but is there any easy way to combine the two in one step?</p>