title: Matlab compilation to excel add-in work but lead to unusable function
body: <p>I wrote a function (anticancer.m) in matlab (R2014a) to do a non-linear regression from a set of data. The fitted equation is another function (sig.m):</p>
  
  <pre><code>function y=sig(a,b,c,d,x)
      if nargin&lt;5
          error('La fonction nécessiste cinq arguments');
      end
      y=(d+(a-d)./(1+(x./c).^b));
  end
  </code></pre>
  
  <p>So, the function sig is used somewere in the anticancer function:</p>
  
  <pre><code>37: ft = fittype('sig(a,b,c,d,x)');
  </code></pre>
  
  <p>The function is working perfectly in matlab. My problem is when i compile this function to make an excel add-in. I did included both the anticancer.m and sig.m file in the deploy tool. The compilation process don't gives any error. The function sig is working fine in excel. But the function anticancer return an error:</p>
  
  <blockquote>
    <p>"Error in sigmo.sigmoclass.1_0: Undefined function 'fittype' for input
    arguments of type 'char'.Error in => anticancer.m at line 37"</p>
  </blockquote>
  
  <p>Can someone help me!</p>
  
  <p>N.B.: The function 'fittype' is part of the curve fitting toolbox, which should be supported by the compiler (<a href="http://www.mathworks.fr/products/compiler/supported/compiler_support.html" rel="nofollow">http://www.mathworks.fr/products/compiler/supported/compiler_support.html</a>)</p>