I've only used MatLab for plotting 2D graphs up to now so please let me know if I'm doing something stupid. Although, for some reason I have to control a C++ application I wrote through the output data from a Simulink model, so even if this is stupid, I have no choice (suggestions welcome though...)!
Now, I understand that an instance of the MatLab interpreter can be made using the "Engine" library and that Simulink models can be loaded by MatLab commands. So is there any way to control the execution of the simulation through MatLab commands? And can a Simulink model be run indefinitely and in real-time? And can output variables be "queried" while the simulation is being run?