I am trying to link an external app to a Simulink model and run the simulation step-by-step. In the model command description it says 'other MATLAB program-based tools to run a simulation step-by-step', what it does not say is how you do this.
The process looks to be:
- compile model
then for each time step:
- call outputs = model(t,x,u,'outputs');
- call dstates = model(t,x,u,'update');
- call derivs = model(t,x,u,'derivs');
What appears to be missing is the call to calculate the continuous states; does any one know how to do this?