title: Can't display the outputs of a MATLAB Function block in Simulink
body: <p>I have a very simple MATLAB Function block in Simulink where I assign 2 input constants to 2 outputs (x1 to y1 and x2 to y2). Simulink runs without any complaints, however, I cannot see the constants on the displays I have connected to the block outputs (the displays constantly show 0). Any idea what I am missing here?</p>
  
  <p><a href="https://i.stack.imgur.com/u3uNO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u3uNO.png" alt="enter image description here"></a></p>
  
  <pre><code>function [y1,y2] = fcn(x1, x2)
  
  while true
      y1=x1
      y2=x2
  end
  </code></pre>
  
  <p>Update: I have also used the Data Inspector to inspect the 2 outputs of the function block and it also reported a value of 0 for both.</p>