title: Problems with Embedded Functions within Simulink
body: <p>I'm trying to simulate a very simple model using an embedded matlab function that takes the input and add's 10 to the value using a constant block that inputs into the matlab function, which then outputs to a display block.</p>
  
  <p>As soon as I press simulate I get an abundance of errors.  First I get a huge paragraph in orange text stating a warning out the solver <code>'variableStepDiscrete'</code> instead of solver <code>'ode45'</code> </p>
  
  <p>Here is the remaining lines that are echo'd from the command prompt:</p>
  
  <pre><code>Code Directory :
   "/Users/dazgti/Documents/MATLAB/slprj/_sfprj/embeddedFunction/_self/sfun/src"
  
  Machine (#32): "embeddedFunction"  Target : "sfun"
  
  
  Chart "MATLAB Function" (#49):
  
  .
       "c2_embeddedFunction.h"
   "c2_embeddedFunction.c"
  
   "embeddedFunction_sfun.h"
  
   "embeddedFunction_sfun.c"
  
   "embeddedFunction_sfun_debug_macros.h"
  
  
  Interface and Support files:
  
   "embeddedFunction_sfun_registry.c"
  
  Code generation failed Attempt to execute SCRIPT union as a function:
  /Users/dazgti/Documents/MATLAB/union.m
  </code></pre>
  
  <p>I have a script file within my matlab directory called <code>union.m</code>, but I have no idea why its mentioning it.</p>
  
  <p><img src="https://i.stack.imgur.com/zRJGu.png" alt="sim"></p>
  
  <pre><code>function y  = fcn(u)
  %#codegen
  
  x = u + 10;
  
  y = x;
  </code></pre>