Reputation:
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:
then for each time step:
What appears to be missing is the call to calculate the continuous states; does any one know how to do this?
Upvotes: 0
Views: 1997
Reputation: 174
There is no simple call for calculating continuous states. You must write a code to calculate them.
More about that on this link: http://www.mathworks.com/matlabcentral/answers/7267-what-is-the-best-way-to-execute-a-simulink-model-step-by-step-interactively-from-matlab
There is also a set of files with example.
Upvotes: 1