title: Can you explain this Embedded MATLAB Function error?
body: <p>I'm having a problem sending a value from a GUI to an Embedded MATLAB Function (EMF) in a Simulink model. I get this value from a slider in my GUI and send it to an EMF block in my model. I can confirm that the value is being transferred correctly from my GUI to my Simulink block, since I can display the value with a display block in my model and see the value change when I change the slider position in my GUI. However I keep getting this error when I run my model:</p>
  
  <pre><code>Could not determine the size of this expression.
  
  Function 'Kastl' (#18.282.283), line 14, column 1:
  "f"
  </code></pre>
  
  <p>This is part of my EMF block code:</p>
  
  <pre><code>function y = input_par(u,fstart)
    ...
    f_end = 1000;
    f = fstart:f_end; 
    ...
  </code></pre>