title: How can the output of a Simulink block be fed back as an input?
body: <p>I have 2 embedded Matlab functions which I am using to create a Simulink model. Both functions use the output of the second function as their input. I am getting an error at the moment indicating that this is an invalid loop.</p>
  
  <p>Does anyone know how to implement this type of behaviour?</p>
  
  <p><img src="https://i.stack.imgur.com/6DfPJ.png" alt="Screenshot showing the model and the error"></p>