I'm trying to run a Simulink model and at the same time receiving and processing data in a Matlab script, and sending the result into Simulink to change the behavior of the model.
Is there any way to run the Simulink simulation and the Matlab script(or function) simultaneously while keeping the interaction between them?