title: How do I get data from a Simulink block into a MATLAB GUI?
body: <p>I have a Simulink model that uses an embedded MATLAB function for a block, and I haven't been able to figure out how to move data between the embedded MATLAB block and a GUI in real-time (i.e. while the model is running). I tried to implement a "to workspace" block in my model but I don't know how to correctly use it.</p>
  
  <p>Does anyone know how to move data from a Simulink block into a GUI in real-time?</p>