One-Step a Simulink Simulation from the MATLAB command line

Hi,
I'm trying to step through a simulink model by just executing time 0 then 1, then 2, etc. from the command line. Rather than using the debugger, I'd like to execute the entire model each time, assuming its fixed-step.
Something like this would be preffered: simulate('model_name', onestep);
Is there any way to do this in simulink/MATLAB?

Antworten (2)

Kaustubha Govind
Kaustubha Govind am 14 Mai 2012

1 Stimme

Yes, you should be able to use the model command to do this.
Note that the word model needs to be replaced with the actual name of the model.

Kategorien

Mehr zu Modeling finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 14 Mai 2012

Beantwortet:

am 28 Mär. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by